Class IssueSamlTokenContract
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.IssueSamlTokenContract
-
- All Implemented Interfaces:
IssueSamlTokenContract<BaseSTSRequest,BaseSTSResponse>,WSTrustContract<BaseSTSRequest,BaseSTSResponse>
- Direct Known Subclasses:
IssueSamlTokenContractImpl,SBIssuedSamlTokenContractImpl
public abstract class IssueSamlTokenContract extends Object implements IssueSamlTokenContract<BaseSTSRequest,BaseSTSResponse>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringauthnCtxClassprotected WSTrustElementFactoryeleFacprotected static StringSAML_BEARER_1_0protected static StringSAML_BEARER_2_0protected static StringSAML_HOLDER_OF_KEY_1_0protected static StringSAML_HOLDER_OF_KEY_2_0protected static StringSAML_SENDER_VOUCHES_1_0protected static StringSAML_SENDER_VOUCHES_2_0protected STSConfigurationstsConfigprotected WSTrustVersionwstVer
-
Constructor Summary
Constructors Constructor Description IssueSamlTokenContract()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BaseSTSResponsecancel(BaseSTSRequest request, IssuedTokenContext context, Map issuedTokenCtxMap)Cancel a Tokenabstract TokencreateSAMLAssertion(String appliesTo, String tokenType, String keyType, String assertionId, String issuer, Map<QName,List<String>> claimedAttrs, 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 TokenBaseSTSResponseissueMultiple(BaseSTSRequest request, IssuedTokenContext context)Issue a Collection of Token(s) possibly for different scopesBaseSTSResponserenew(BaseSTSRequest request, IssuedTokenContext context)Renew a TokenBaseSTSResponsevalidate(BaseSTSRequest request, IssuedTokenContext context)Validate a Token
-
-
-
Field Detail
-
SAML_HOLDER_OF_KEY_1_0
protected static final String SAML_HOLDER_OF_KEY_1_0
- See Also:
- Constant Field Values
-
SAML_HOLDER_OF_KEY_2_0
protected static final String SAML_HOLDER_OF_KEY_2_0
- See Also:
- Constant Field Values
-
SAML_BEARER_1_0
protected static final String SAML_BEARER_1_0
- See Also:
- Constant Field Values
-
SAML_BEARER_2_0
protected static final String SAML_BEARER_2_0
- See Also:
- Constant Field Values
-
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
-
authnCtxClass
protected String authnCtxClass
-
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
Issue a Token- Specified by:
issuein interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
issueMultiple
public BaseSTSResponse issueMultiple(BaseSTSRequest request, IssuedTokenContext context) throws WSTrustException
Issue a Collection of Token(s) possibly for different scopes- Throws:
WSTrustException
-
renew
public BaseSTSResponse renew(BaseSTSRequest request, IssuedTokenContext context) throws WSTrustException
Renew a Token- Specified by:
renewin interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
cancel
public BaseSTSResponse cancel(BaseSTSRequest request, IssuedTokenContext context, Map issuedTokenCtxMap) throws WSTrustException
Cancel a Token- Specified by:
cancelin interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
validate
public BaseSTSResponse validate(BaseSTSRequest request, IssuedTokenContext context) throws WSTrustException
Validate a Token- Specified by:
validatein interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
handleUnsolicited
public void handleUnsolicited(BaseSTSResponse rstr, IssuedTokenContext context) throws WSTrustException
handle an unsolicited RSTR like in the case of Client Initiated Secure Conversation.- Specified by:
handleUnsolicitedin interfaceWSTrustContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
createSAMLAssertion
public abstract Token createSAMLAssertion(String appliesTo, String tokenType, String keyType, String assertionId, String issuer, Map<QName,List<String>> claimedAttrs, IssuedTokenContext context) throws WSTrustException
- Specified by:
createSAMLAssertionin interfaceIssueSamlTokenContract<BaseSTSRequest,BaseSTSResponse>- Throws:
WSTrustException
-
-