com.sun.xml.ws.security.trust.sts
Class BaseSTSImpl

java.lang.Object
  extended by com.sun.xml.ws.security.trust.sts.BaseSTSImpl
All Implemented Interfaces:
BaseSTS, javax.xml.ws.Provider<javax.xml.transform.Source>

public abstract class BaseSTSImpl
extends java.lang.Object
implements BaseSTS

The Base class of an STS implementation. This could be used to implement the actual STS. The sub class could override the methods of this class to customize the implementation.


Field Summary
static java.lang.String ALIAS
          The String CertAlias that is used in the configuration.
static java.lang.String APPLIES_TO
          The String AppliesTo
static java.lang.String CONTRACT
          The String Contract.
static java.lang.String DEFAULT_APPLIESTO
          The default value for AppliesTo if appliesTo is not specified.
static java.lang.String DEFAULT_IMPL
          The default implementation class for the Trust contract.
static java.lang.String DEFAULT_ISSUER
           
static int DEFAULT_TIMEOUT
          The default value of the timeout for the tokens issued by this STS
static java.lang.String ENCRYPT_KEY
          The String encrypt-issued-key
static java.lang.String ENCRYPT_TOKEN
          The String encrypt-issued-token
static java.lang.String END_POINT
          The String endPoint.
static java.lang.String ISSUER
           
static java.lang.String KEY_TYPE
          The String KeyType.
static java.lang.String LIFETIME
          The String LifeTime that is used to specify lifetime of the tokens issued by this STS.
static java.lang.String SERVICE_PROVIDERS
          The String ServiceProviders.
static java.lang.String STS_CONFIGURATION
          The xml element tag for STS Configuration
static java.lang.String TOKEN_TYPE
          The String TokenType.
protected  WSTrustVersion wstVer
           
 
Constructor Summary
BaseSTSImpl()
           
 
Method Summary
protected abstract  javax.xml.ws.handler.MessageContext getMessageContext()
          The actual STS class should override this method to return the correct MessageContext
 javax.xml.transform.Source invoke(javax.xml.transform.Source rstElement)
          Implementation of the invoke method of the Provider interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
The default value of the timeout for the tokens issued by this STS

See Also:
Constant Field Values

DEFAULT_ISSUER

public static final java.lang.String DEFAULT_ISSUER
See Also:
Constant Field Values

STS_CONFIGURATION

public static final java.lang.String STS_CONFIGURATION
The xml element tag for STS Configuration

See Also:
Constant Field Values

DEFAULT_IMPL

public static final java.lang.String DEFAULT_IMPL
The default implementation class for the Trust contract. This class issues SAML tokens.

See Also:
Constant Field Values

DEFAULT_APPLIESTO

public static final java.lang.String DEFAULT_APPLIESTO
The default value for AppliesTo if appliesTo is not specified.

See Also:
Constant Field Values

APPLIES_TO

public static final java.lang.String APPLIES_TO
The String AppliesTo

See Also:
Constant Field Values

LIFETIME

public static final java.lang.String LIFETIME
The String LifeTime that is used to specify lifetime of the tokens issued by this STS.

See Also:
Constant Field Values

ALIAS

public static final java.lang.String ALIAS
The String CertAlias that is used in the configuration. This identifies the alias of the Service that this STS serves.

See Also:
Constant Field Values

ENCRYPT_KEY

public static final java.lang.String ENCRYPT_KEY
The String encrypt-issued-key

See Also:
Constant Field Values

ENCRYPT_TOKEN

public static final java.lang.String ENCRYPT_TOKEN
The String encrypt-issued-token

See Also:
Constant Field Values

CONTRACT

public static final java.lang.String CONTRACT
The String Contract.

See Also:
Constant Field Values

ISSUER

public static final java.lang.String ISSUER
See Also:
Constant Field Values

TOKEN_TYPE

public static final java.lang.String TOKEN_TYPE
The String TokenType.

See Also:
Constant Field Values

KEY_TYPE

public static final java.lang.String KEY_TYPE
The String KeyType.

See Also:
Constant Field Values

SERVICE_PROVIDERS

public static final java.lang.String SERVICE_PROVIDERS
The String ServiceProviders.

See Also:
Constant Field Values

END_POINT

public static final java.lang.String END_POINT
The String endPoint.

See Also:
Constant Field Values

wstVer

protected WSTrustVersion wstVer
Constructor Detail

BaseSTSImpl

public BaseSTSImpl()
Method Detail

invoke

public javax.xml.transform.Source invoke(javax.xml.transform.Source rstElement)
Implementation of the invoke method of the Provider interface

Specified by:
invoke in interface BaseSTS
Specified by:
invoke in interface javax.xml.ws.Provider<javax.xml.transform.Source>
Parameters:
rstElement - The message comprising of RequestSecurityToken.
Returns:
The response message comprising of RequestSecurityTokenResponse
Throws:
javax.xml.ws.WebServiceException - if there is an error processing request. The cause of the WebServiceException may be set to a subclass of ProtocolException to control the protocol level representation of the exception.

getMessageContext

protected abstract javax.xml.ws.handler.MessageContext getMessageContext()
The actual STS class should override this method to return the correct MessageContext

Returns:
The MessageContext