com.sun.xml.ws.security.trust.impl
Class IssueSamlTokenContract

java.lang.Object
  extended by 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 java.lang.Object
implements IssueSamlTokenContract<BaseSTSRequest,BaseSTSResponse>


Field Summary
protected  java.lang.String authnCtxClass
           
protected  WSTrustElementFactory eleFac
           
protected static java.lang.String SAML_BEARER_1_0
           
protected static java.lang.String SAML_BEARER_2_0
           
protected static java.lang.String SAML_HOLDER_OF_KEY_1_0
           
protected static java.lang.String SAML_HOLDER_OF_KEY_2_0
           
protected static java.lang.String SAML_SENDER_VOUCHES_1_0
           
protected static java.lang.String SAML_SENDER_VOUCHES_2_0
           
protected  STSConfiguration stsConfig
           
protected  WSTrustVersion wstVer
           
 
Constructor Summary
IssueSamlTokenContract()
           
 
Method Summary
 BaseSTSResponse cancel(BaseSTSRequest request, com.sun.xml.ws.security.IssuedTokenContext context, java.util.Map issuedTokenCtxMap)
          Cancel a Token
abstract  com.sun.xml.ws.security.Token createSAMLAssertion(java.lang.String appliesTo, java.lang.String tokenType, java.lang.String keyType, java.lang.String assertionId, java.lang.String issuer, java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> claimedAttrs, com.sun.xml.ws.security.IssuedTokenContext context)
           
 void handleUnsolicited(BaseSTSResponse rstr, com.sun.xml.ws.security.IssuedTokenContext context)
          handle an unsolicited RSTR like in the case of Client Initiated Secure Conversation.
 void init(STSConfiguration stsConfig)
           
 BaseSTSResponse issue(BaseSTSRequest request, com.sun.xml.ws.security.IssuedTokenContext context)
          Issue a Token
 BaseSTSResponse issueMultiple(BaseSTSRequest request, com.sun.xml.ws.security.IssuedTokenContext context)
          Issue a Collection of Token(s) possibly for different scopes
 BaseSTSResponse renew(BaseSTSRequest request, com.sun.xml.ws.security.IssuedTokenContext context)
          Renew a Token
 BaseSTSResponse validate(BaseSTSRequest request, com.sun.xml.ws.security.IssuedTokenContext context)
          Validate a Token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAML_HOLDER_OF_KEY_1_0

protected static final java.lang.String SAML_HOLDER_OF_KEY_1_0
See Also:
Constant Field Values

SAML_HOLDER_OF_KEY_2_0

protected static final java.lang.String SAML_HOLDER_OF_KEY_2_0
See Also:
Constant Field Values

SAML_BEARER_1_0

protected static final java.lang.String SAML_BEARER_1_0
See Also:
Constant Field Values

SAML_BEARER_2_0

protected static final java.lang.String SAML_BEARER_2_0
See Also:
Constant Field Values

SAML_SENDER_VOUCHES_1_0

protected static final java.lang.String SAML_SENDER_VOUCHES_1_0
See Also:
Constant Field Values

SAML_SENDER_VOUCHES_2_0

protected static final java.lang.String SAML_SENDER_VOUCHES_2_0
See Also:
Constant Field Values

stsConfig

protected STSConfiguration stsConfig

wstVer

protected WSTrustVersion wstVer

authnCtxClass

protected java.lang.String authnCtxClass

eleFac

protected WSTrustElementFactory eleFac
Constructor Detail

IssueSamlTokenContract

public IssueSamlTokenContract()
Method Detail

init

public void init(STSConfiguration stsConfig)
Specified by:
init in interface WSTrustContract<BaseSTSRequest,BaseSTSResponse>

issue

public BaseSTSResponse issue(BaseSTSRequest request,
                             com.sun.xml.ws.security.IssuedTokenContext context)
                      throws WSTrustException
Issue a Token

Specified by:
issue in interface WSTrustContract<BaseSTSRequest,BaseSTSResponse>
Throws:
WSTrustException

issueMultiple

public BaseSTSResponse issueMultiple(BaseSTSRequest request,
                                     com.sun.xml.ws.security.IssuedTokenContext context)
                              throws WSTrustException
Issue a Collection of Token(s) possibly for different scopes

Throws:
WSTrustException

renew

public BaseSTSResponse renew(BaseSTSRequest request,
                             com.sun.xml.ws.security.IssuedTokenContext context)
                      throws WSTrustException
Renew a Token

Specified by:
renew in interface WSTrustContract<BaseSTSRequest,BaseSTSResponse>
Throws:
WSTrustException

cancel

public BaseSTSResponse cancel(BaseSTSRequest request,
                              com.sun.xml.ws.security.IssuedTokenContext context,
                              java.util.Map issuedTokenCtxMap)
                       throws WSTrustException
Cancel a Token

Specified by:
cancel in interface WSTrustContract<BaseSTSRequest,BaseSTSResponse>
Throws:
WSTrustException

validate

public BaseSTSResponse validate(BaseSTSRequest request,
                                com.sun.xml.ws.security.IssuedTokenContext context)
                         throws WSTrustException
Validate a Token

Specified by:
validate in interface WSTrustContract<BaseSTSRequest,BaseSTSResponse>
Throws:
WSTrustException

handleUnsolicited

public void handleUnsolicited(BaseSTSResponse rstr,
                              com.sun.xml.ws.security.IssuedTokenContext context)
                       throws WSTrustException
handle an unsolicited RSTR like in the case of Client Initiated Secure Conversation.

Specified by:
handleUnsolicited in interface WSTrustContract<BaseSTSRequest,BaseSTSResponse>
Throws:
WSTrustException

createSAMLAssertion

public abstract com.sun.xml.ws.security.Token createSAMLAssertion(java.lang.String appliesTo,
                                                                  java.lang.String tokenType,
                                                                  java.lang.String keyType,
                                                                  java.lang.String assertionId,
                                                                  java.lang.String issuer,
                                                                  java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> claimedAttrs,
                                                                  com.sun.xml.ws.security.IssuedTokenContext context)
                                                           throws WSTrustException
Specified by:
createSAMLAssertion in interface IssueSamlTokenContract<BaseSTSRequest,BaseSTSResponse>
Throws:
WSTrustException