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

java.lang.Object
  extended by com.sun.xml.ws.security.trust.impl.WSTrustContractImpl
All Implemented Interfaces:
WSTrustContract<BaseSTSRequest,BaseSTSResponse>
Direct Known Subclasses:
ICContractImpl

public class WSTrustContractImpl
extends java.lang.Object
implements WSTrustContract<BaseSTSRequest,BaseSTSResponse>


Field Summary
protected  WSTrustElementFactory eleFac
           
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
WSTrustContractImpl()
           
 
Method Summary
 BaseSTSResponse cancel(BaseSTSRequest rst, com.sun.xml.ws.security.IssuedTokenContext context, java.util.Map map)
          Cancel a Token
protected  void handleExtension(BaseSTSRequest request, BaseSTSResponse response, 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 renew(BaseSTSRequest rst, 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_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

eleFac

protected WSTrustElementFactory eleFac
Constructor Detail

WSTrustContractImpl

public WSTrustContractImpl()
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
Description copied from interface: WSTrustContract
Issue a Token

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

handleExtension

protected void handleExtension(BaseSTSRequest request,
                               BaseSTSResponse response,
                               com.sun.xml.ws.security.IssuedTokenContext context)
                        throws WSTrustException
Throws:
WSTrustException

renew

public BaseSTSResponse renew(BaseSTSRequest rst,
                             com.sun.xml.ws.security.IssuedTokenContext context)
                      throws WSTrustException
Description copied from interface: WSTrustContract
Renew a Token

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

cancel

public BaseSTSResponse cancel(BaseSTSRequest rst,
                              com.sun.xml.ws.security.IssuedTokenContext context,
                              java.util.Map map)
                       throws WSTrustException
Description copied from interface: WSTrustContract
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
Description copied from interface: WSTrustContract
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
Description copied from interface: WSTrustContract
handle an unsolicited RSTR like in the case of Client Initiated Secure Conversation.

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