Class WSTrustClientContractImpl
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.WSTrustClientContractImpl
-
- All Implemented Interfaces:
WSTrustClientContract
public class WSTrustClientContractImpl extends Object implements WSTrustClientContract
- Author:
- WS-Trust-Implementation team
-
-
Constructor Summary
Constructors Constructor Description WSTrustClientContractImpl()Creates a new instance of WSTrustClientContractImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsChallenge(RequestSecurityTokenResponse rstr)Contains ChallengeBaseSTSResponsecreateRSTRForClientInitiatedIssuedTokenContext(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(BaseSTSRequest request, BaseSTSResponse response, IssuedTokenContext context)Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.BaseSTSResponsehandleRSTRForNegotiatedExchange(BaseSTSRequest request, BaseSTSResponse response, IssuedTokenContext context)Handle an RSTR returned by the Issuer and Respond to the Challenge
-
-
-
Method Detail
-
handleRSTR
public void handleRSTR(BaseSTSRequest request, BaseSTSResponse response, IssuedTokenContext context) throws WSTrustException
Handle an RSTR returned by the Issuer and update Token information into the IssuedTokenContext.- Specified by:
handleRSTRin interfaceWSTrustClientContract- Throws:
WSTrustException
-
handleRSTRForNegotiatedExchange
public BaseSTSResponse handleRSTRForNegotiatedExchange(BaseSTSRequest request, BaseSTSResponse response, IssuedTokenContext context) throws WSTrustException
Handle an RSTR returned by the Issuer and Respond to the Challenge- Specified by:
handleRSTRForNegotiatedExchangein interfaceWSTrustClientContract- Throws:
WSTrustException
-
createRSTRForClientInitiatedIssuedTokenContext
public BaseSTSResponse createRSTRForClientInitiatedIssuedTokenContext(AppliesTo scopes, IssuedTokenContext context) throws WSTrustException
Create an RSTR for a client initiated IssuedTokenContext establishment, for example a Client Initiated WS-SecureConversation context.- Specified by:
createRSTRForClientInitiatedIssuedTokenContextin interfaceWSTrustClientContract- Throws:
WSTrustException
-
containsChallenge
public boolean containsChallenge(RequestSecurityTokenResponse rstr)
Contains Challenge- Specified by:
containsChallengein interfaceWSTrustClientContract- 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- Specified by:
getComputedKeyAlgorithmFromProofTokenin interfaceWSTrustClientContract
-
-