Class BaseSTSImpl
java.lang.Object
com.sun.xml.ws.security.trust.sts.BaseSTSImpl
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
FieldsModifier and TypeFieldDescriptionstatic final StringThe String CertAlias that is used in the configuration.static final StringThe String AppliesTostatic final StringThe String Contract.static final StringThe default value for AppliesTo if appliesTo is not specified.static final StringThe default implementation class for the Trust contract.static final Stringstatic final intThe default value of the timeout for the tokens issued by this STSstatic final StringThe String encrypt-issued-keystatic final StringThe String encrypt-issued-tokenstatic final StringThe String endPoint.static final Stringstatic final StringThe String KeyType.static final StringThe String LifeTime that is used to specify lifetime of the tokens issued by this STS.static final StringThe String ServiceProviders.static final StringThe xml element tag for STS Configurationstatic final StringThe String TokenType.protected WSTrustVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract jakarta.xml.ws.handler.MessageContextThe actual STS class should override this method to return the correct MessageContextImplementation of the invoke method of the Provider interface
-
Field Details
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUTThe default value of the timeout for the tokens issued by this STS- See Also:
-
DEFAULT_ISSUER
- See Also:
-
STS_CONFIGURATION
The xml element tag for STS Configuration- See Also:
-
DEFAULT_IMPL
The default implementation class for the Trust contract. This class issues SAML tokens.- See Also:
-
DEFAULT_APPLIESTO
The default value for AppliesTo if appliesTo is not specified.- See Also:
-
APPLIES_TO
The String AppliesTo- See Also:
-
LIFETIME
The String LifeTime that is used to specify lifetime of the tokens issued by this STS.- See Also:
-
ALIAS
The String CertAlias that is used in the configuration. This identifies the alias of the Service that this STS serves.- See Also:
-
ENCRYPT_KEY
The String encrypt-issued-key- See Also:
-
ENCRYPT_TOKEN
The String encrypt-issued-token- See Also:
-
CONTRACT
The String Contract.- See Also:
-
ISSUER
- See Also:
-
TOKEN_TYPE
The String TokenType.- See Also:
-
KEY_TYPE
The String KeyType.- See Also:
-
SERVICE_PROVIDERS
The String ServiceProviders.- See Also:
-
END_POINT
The String endPoint.- See Also:
-
wstVer
-
-
Constructor Details
-
BaseSTSImpl
public BaseSTSImpl()
-
-
Method Details
-
invoke
Implementation of the invoke method of the Provider interface- Specified by:
invokein interfaceBaseSTS- Specified by:
invokein interfacejakarta.xml.ws.Provider<Source>- Parameters:
rstElement- The message comprising of RequestSecurityToken.- Returns:
- The response message comprising of RequestSecurityTokenResponse
- Throws:
jakarta.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 jakarta.xml.ws.handler.MessageContext getMessageContext()The actual STS class should override this method to return the correct MessageContext- Returns:
- The MessageContext
-