Class WSTrustContractImpl
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.WSTrustContractImpl
-
- All Implemented Interfaces:
WSTrustContract<BaseSTSRequest,BaseSTSResponse>
- Direct Known Subclasses:
ICContractImpl
public class WSTrustContractImpl extends Object implements WSTrustContract<BaseSTSRequest,BaseSTSResponse>
- Author:
- Jiandong Guo
-
-
Field Summary
Fields Modifier and Type Field Description protected WSTrustElementFactoryeleFacprotected static StringSAML_SENDER_VOUCHES_1_0protected static StringSAML_SENDER_VOUCHES_2_0protected STSConfigurationstsConfigprotected WSTrustVersionwstVer
-
Constructor Summary
Constructors Constructor Description WSTrustContractImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseSTSResponsecancel(BaseSTSRequest rst, IssuedTokenContext context, Map map)Cancel a Tokenprotected voidhandleExtension(BaseSTSRequest request, BaseSTSResponse response, IssuedTokenContext context)voidhandleUnsolicited(BaseSTSResponse rstr, IssuedTokenContext context)handle an unsolicited RSTR like in the case of Client Initiated Secure Conversation.voidinit(STSConfiguration stsConfig)BaseSTSResponseissue(BaseSTSRequest request, IssuedTokenContext context)Issue a TokenBaseSTSResponserenew(BaseSTSRequest rst, IssuedTokenContext context)Renew a TokenBaseSTSResponsevalidate(BaseSTSRequest request, IssuedTokenContext context)Validate a Token
-
-
-
Field Detail
-
SAML_SENDER_VOUCHES_1_0
protected static final String SAML_SENDER_VOUCHES_1_0
- See Also:
- Constant Field Values
-
SAML_SENDER_VOUCHES_2_0
protected static final String SAML_SENDER_VOUCHES_2_0
- See Also:
- Constant Field Values
-
stsConfig
protected STSConfiguration stsConfig
-
wstVer
protected WSTrustVersion wstVer
-
eleFac
protected WSTrustElementFactory eleFac
-
-
Method Detail
-
init
public void init(STSConfiguration stsConfig)
- Specified by:
initin interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>
-
issue
public BaseSTSResponse issue(BaseSTSRequest request, IssuedTokenContext context) throws WSTrustException
Description copied from interface:WSTrustContractIssue a Token- Specified by:
issuein interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
handleExtension
protected void handleExtension(BaseSTSRequest request, BaseSTSResponse response, IssuedTokenContext context) throws WSTrustException
- Throws:
WSTrustException
-
renew
public BaseSTSResponse renew(BaseSTSRequest rst, IssuedTokenContext context) throws WSTrustException
Description copied from interface:WSTrustContractRenew a Token- Specified by:
renewin interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
cancel
public BaseSTSResponse cancel(BaseSTSRequest rst, IssuedTokenContext context, Map map) throws WSTrustException
Description copied from interface:WSTrustContractCancel a Token- Specified by:
cancelin interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
validate
public BaseSTSResponse validate(BaseSTSRequest request, IssuedTokenContext context) throws WSTrustException
Description copied from interface:WSTrustContractValidate a Token- Specified by:
validatein interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
handleUnsolicited
public void handleUnsolicited(BaseSTSResponse rstr, IssuedTokenContext context) throws WSTrustException
Description copied from interface:WSTrustContracthandle an unsolicited RSTR like in the case of Client Initiated Secure Conversation.- Specified by:
handleUnsolicitedin interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
-