SecurityTokenHandlerSAML2TokenHandler, SAMLTokenHandlerpublic abstract class AbstractSAMLTokenHandler extends java.lang.Object implements SecurityTokenHandler
| Constructor | Description |
|---|---|
AbstractSAMLTokenHandler() |
Deprecated.
default constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
KeyProvider |
getKeyProvider(SecurityToken token,
javax.xml.rpc.handler.MessageContext ctx) |
Deprecated.
get the saml key provider
|
abstract javax.xml.namespace.QName[] |
getQNames() |
Deprecated.
get QNames of saml assertion
|
SecurityToken |
getSecurityToken(java.lang.String valueType,
java.lang.Object credentials,
ContextHandler ctxHandler) |
Deprecated.
create a new SAML token that can be either SAML TP 1.0 or 1.1 value types
|
SecurityToken |
getSecurityToken(java.lang.String valueType,
java.lang.String issuer,
Purpose p,
ContextHandler ctxHandler) |
Deprecated.
Get the Security token from context handler base on the value type.
|
SecurityToken |
getSecurityToken(SecurityTokenReference str,
javax.xml.rpc.handler.MessageContext ctx) |
Deprecated.
get security token based on referenece
|
SecurityTokenReference |
getSTR(javax.xml.namespace.QName STRType,
java.lang.String valueType,
SecurityToken token) |
Deprecated.
new saml token reference
|
javax.security.auth.Subject |
getSubject(SecurityToken token,
javax.xml.rpc.handler.MessageContext msgCtx) |
Deprecated.
Get authenticated subject from saml token
|
abstract java.lang.String[] |
getValueTypes() |
Deprecated.
SAML value types
|
abstract boolean |
isSaml2() |
Deprecated.
|
abstract boolean |
isSupportedTokenType(java.lang.String tokenType) |
Deprecated.
|
abstract boolean |
isSupportedValueType(java.lang.String valueType) |
Deprecated.
|
boolean |
matches(SecurityToken token,
java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p) |
Deprecated.
check if the token should be handled by saml token handler
|
SecurityToken |
newSecurityToken(org.w3c.dom.Node node) |
Deprecated.
Create a new SAML token.
|
SecurityTokenReference |
newSecurityTokenReference(org.w3c.dom.Node node) |
Deprecated.
Create a new securityTokenReference of given saml assertion
|
public AbstractSAMLTokenHandler()
public abstract javax.xml.namespace.QName[] getQNames()
getQNames in interface SecurityTokenHandlerpublic abstract java.lang.String[] getValueTypes()
getValueTypes in interface SecurityTokenHandlerpublic abstract boolean isSupportedTokenType(java.lang.String tokenType)
public abstract boolean isSupportedValueType(java.lang.String valueType)
public abstract boolean isSaml2()
public SecurityToken getSecurityToken(java.lang.String valueType, java.lang.Object credentials, ContextHandler ctxHandler) throws WSSecurityException
getSecurityToken in interface SecurityTokenHandlervalueType - saml token type can be either SAML TP 1.0 or 1.1 value typescredentials - saml credentialsctxHandler - context handler, it must to have the idecation of SAML 1.1 or SAML 2.0WSSecurityException - occurs during processpublic SecurityToken getSecurityToken(java.lang.String valueType, java.lang.String issuer, Purpose p, ContextHandler ctxHandler) throws WSSecurityException
getSecurityToken in interface SecurityTokenHandlervalueType - saml token type can be either SAML TP 1.0 or 1.1 value typesissuer - p - ctxHandler - WSSecurityExceptionpublic SecurityTokenReference getSTR(javax.xml.namespace.QName STRType, java.lang.String valueType, SecurityToken token) throws WSSecurityException
getSTR in interface SecurityTokenHandlerSTRType - type of security token referencevalueType - SAML_VALUE_TYPEtoken - saml tokenWSSecurityExceptionpublic SecurityToken newSecurityToken(org.w3c.dom.Node node) throws MarshalException
newSecurityToken in interface SecurityTokenHandlernode - node of saml assertionMarshalExceptionpublic SecurityTokenReference newSecurityTokenReference(org.w3c.dom.Node node) throws MarshalException
newSecurityTokenReference in interface SecurityTokenHandlernode - node of saml assertionMarshalException - occurs during processpublic KeyProvider getKeyProvider(SecurityToken token, javax.xml.rpc.handler.MessageContext ctx)
getKeyProvider in interface SecurityTokenHandlertoken - saml tokenctx - message contextpublic SecurityToken getSecurityToken(SecurityTokenReference str, javax.xml.rpc.handler.MessageContext ctx) throws WSSecurityException
getSecurityToken in interface SecurityTokenHandlerstr - SecurityTokenReference of saml tokenctx - message contextWSSecurityException - occurs during processpublic boolean matches(SecurityToken token, java.lang.String tokenType, java.lang.String issuerName, ContextHandler ctxHandler, Purpose p)
matches in interface SecurityTokenHandlertoken - token to checktokenType - token type to checkissuerName - issuer of the saml tokenctxHandler - context handlerp - purposepublic javax.security.auth.Subject getSubject(SecurityToken token, javax.xml.rpc.handler.MessageContext msgCtx) throws WSSecurityException
getSubject in interface SecurityTokenHandlertoken - saml tokenmsgCtx - message contextWSSecurityException - occurs during process