|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WSSecurityContext is used by SAS to be authentication mechanism agnostic by providing an interface for creating the authentication mechanism specific tokens. This should only be used in special cases.
Method Summary | |
---|---|
WSSecurityContextResult |
acceptSecContext(byte[] token)
Deprecated. This method is called during the server receive_request in the portable interceptor. |
void |
completeSecContext(byte[] final_token)
Deprecated. This method is called during the client receive_reply in the portable interceptor. |
void |
dispose()
Deprecated. This method is called on the client after completeSecContext, and on the server after acceptSecContext. |
byte[] |
initSecContext(javax.security.auth.Subject subject,
java.lang.String targetServerName,
java.lang.String realm)
Deprecated. This method is called during the client send_request in the portable interceptor. |
byte[] |
initSecContext(WSCredential cred,
java.lang.String targetServerName,
java.lang.String realm)
Deprecated. Use WSSecurityContext.initSecContext(Subject subject, String targetServerName, String realm); |
Method Detail |
public byte[] initSecContext(WSCredential cred, java.lang.String targetServerName, java.lang.String realm) throws WSSecurityContextException
This method is called during the client send_request in the portable interceptor. The purpose of this method is to create a security token for use by acceptSecContext to authenticate the user's security information.
cred
- com.ibm.websphere.security.cred.WSCredentialtargetServerName
- Stringrealm
- String
WSSecurityContextException
public byte[] initSecContext(javax.security.auth.Subject subject, java.lang.String targetServerName, java.lang.String realm) throws WSSecurityContextException
This method is called during the client send_request in the portable interceptor. The purpose of this method is to create a security token for use by acceptSecContext to authenticate the user's security information.
subject
- javax.security.auth.SubjecttargetServerName
- Stringrealm
- String
WSSecurityContextException
public WSSecurityContextResult acceptSecContext(byte[] token) throws WSSecurityContextException
This method is called during the server receive_request in the portable interceptor. It is responsible for processing the security token sent from the client and creating a credential and possibly a final_context_token. The final_context_token is optional, the credential is required.
token
- byte[]
WSSecurityContextException
public void completeSecContext(byte[] final_token) throws WSSecurityContextException
This method is called during the client receive_reply in the portable interceptor. It is used to process the final_context_token sent back to the client after the acceptSecContext.
final_token
- byte[]
WSSecurityContextException
public void dispose() throws WSSecurityContextException
This method is called on the client after completeSecContext, and on the server after acceptSecContext. The purpose of the method is to cleanup information on the client side and server side. The instance of WSSecurityContextImpl used to call initSecContext() will be the same for completeSecContext().
WSSecurityContextException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |