Package com.sun.xml.ws.security.secconv
Class WSSCClientContract
- java.lang.Object
-
- com.sun.xml.ws.security.secconv.WSSCClientContract
-
public class WSSCClientContract extends Object
-
-
Constructor Summary
Constructors Constructor Description WSSCClientContract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsChallenge(RequestSecurityTokenResponse rstr)Contains ChallengeRequestSecurityTokenResponsecreateRSTRForClientInitiatedIssuedTokenContext(AppliesTo scopes, IssuedTokenContext context)Create an RSTR for a client initiated IssuedTokenContext establishment, for example a Client Initiated WS-SecureConversation context.URIgetComputedKeyAlgorithmFromProofToken(RequestSecurityTokenResponse rstr)Return the <wst:ComputedKey> URI if any inside the RSTR, null otherwisevoidhandleRSTR(RequestSecurityToken rst, RequestSecurityTokenResponse rstr, IssuedTokenContext context)Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.voidhandleRSTRC(RequestSecurityToken rst, RequestSecurityTokenResponseCollection rstrc, IssuedTokenContext context)Handle an RSTRC returned by the Issuer and update Token information into the IssuedTokenContext.RequestSecurityTokenResponsehandleRSTRForNegotiatedExchange(RequestSecurityToken rst, RequestSecurityTokenResponse rstr, IssuedTokenContext context)Handle an RSTR returned by the Issuer and Respond to the Challenge
-
-
-
Method Detail
-
handleRSTR
public void handleRSTR(RequestSecurityToken rst, RequestSecurityTokenResponse rstr, IssuedTokenContext context) throws WSSecureConversationException
Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.- Throws:
WSSecureConversationException
-
handleRSTRC
public void handleRSTRC(RequestSecurityToken rst, RequestSecurityTokenResponseCollection rstrc, IssuedTokenContext context) throws WSSecureConversationException
Handle an RSTRC returned by the Issuer and update Token information into the IssuedTokenContext.- Throws:
WSSecureConversationException
-
handleRSTRForNegotiatedExchange
public RequestSecurityTokenResponse handleRSTRForNegotiatedExchange(RequestSecurityToken rst, RequestSecurityTokenResponse rstr, IssuedTokenContext context) throws WSSecureConversationException
Handle an RSTR returned by the Issuer and Respond to the Challenge- Throws:
WSSecureConversationException
-
createRSTRForClientInitiatedIssuedTokenContext
public RequestSecurityTokenResponse createRSTRForClientInitiatedIssuedTokenContext(AppliesTo scopes, IssuedTokenContext context) throws WSSecureConversationException
Create an RSTR for a client initiated IssuedTokenContext establishment, for example a Client Initiated WS-SecureConversation context.- Throws:
WSSecureConversationException
-
containsChallenge
public boolean containsChallenge(RequestSecurityTokenResponse rstr)
Contains Challenge- Returns:
- true if the RSTR contains a SignChallenge/BinaryExchange or some other custom challenge recognized by this implementation.
-
getComputedKeyAlgorithmFromProofToken
public URI getComputedKeyAlgorithmFromProofToken(RequestSecurityTokenResponse rstr)
Return the <wst:ComputedKey> URI if any inside the RSTR, null otherwise
-
-