Class BaseSTSImpl
- java.lang.Object
-
- com.sun.xml.ws.security.trust.sts.BaseSTSImpl
-
- All Implemented Interfaces:
com.sun.xml.ws.api.security.trust.BaseSTS,javax.xml.ws.Provider<Source>
public abstract class BaseSTSImpl extends Object implements com.sun.xml.ws.api.security.trust.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
Fields Modifier and Type Field Description static StringALIASThe String CertAlias that is used in the configuration.static StringAPPLIES_TOThe String AppliesTostatic StringCONTRACTThe String Contract.static StringDEFAULT_APPLIESTOThe default value for AppliesTo if appliesTo is not specified.static StringDEFAULT_IMPLThe default implementation class for the Trust contract.static StringDEFAULT_ISSUERstatic intDEFAULT_TIMEOUTThe default value of the timeout for the tokens issued by this STSstatic StringENCRYPT_KEYThe String encrypt-issued-keystatic StringENCRYPT_TOKENThe String encrypt-issued-tokenstatic StringEND_POINTThe String endPoint.static StringISSUERstatic StringKEY_TYPEThe String KeyType.static StringLIFETIMEThe String LifeTime that is used to specify lifetime of the tokens issued by this STS.static StringSERVICE_PROVIDERSThe String ServiceProviders.static StringSTS_CONFIGURATIONThe xml element tag for STS Configurationstatic StringTOKEN_TYPEThe String TokenType.protected com.sun.xml.ws.security.trust.WSTrustVersionwstVer
-
Constructor Summary
Constructors Constructor Description BaseSTSImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract javax.xml.ws.handler.MessageContextgetMessageContext()The actual STS class should override this method to return the correct MessageContextSourceinvoke(Source rstElement)Implementation of the invoke method of the Provider interface
-
-
-
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 String DEFAULT_ISSUER
- See Also:
- Constant Field Values
-
STS_CONFIGURATION
public static final String STS_CONFIGURATION
The xml element tag for STS Configuration- See Also:
- Constant Field Values
-
DEFAULT_IMPL
public static final 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 String DEFAULT_APPLIESTO
The default value for AppliesTo if appliesTo is not specified.- See Also:
- Constant Field Values
-
APPLIES_TO
public static final String APPLIES_TO
The String AppliesTo- See Also:
- Constant Field Values
-
LIFETIME
public static final 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 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 String ENCRYPT_KEY
The String encrypt-issued-key- See Also:
- Constant Field Values
-
ENCRYPT_TOKEN
public static final String ENCRYPT_TOKEN
The String encrypt-issued-token- See Also:
- Constant Field Values
-
CONTRACT
public static final String CONTRACT
The String Contract.- See Also:
- Constant Field Values
-
ISSUER
public static final String ISSUER
- See Also:
- Constant Field Values
-
TOKEN_TYPE
public static final String TOKEN_TYPE
The String TokenType.- See Also:
- Constant Field Values
-
KEY_TYPE
public static final String KEY_TYPE
The String KeyType.- See Also:
- Constant Field Values
-
SERVICE_PROVIDERS
public static final String SERVICE_PROVIDERS
The String ServiceProviders.- See Also:
- Constant Field Values
-
END_POINT
public static final String END_POINT
The String endPoint.- See Also:
- Constant Field Values
-
wstVer
protected com.sun.xml.ws.security.trust.WSTrustVersion wstVer
-
-
Method Detail
-
invoke
public Source invoke(Source rstElement)
Implementation of the invoke method of the Provider interface- Specified by:
invokein interfacecom.sun.xml.ws.api.security.trust.BaseSTS- Specified by:
invokein interfacejavax.xml.ws.Provider<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
-
-