public abstract class AbstractSAMLTokenHandler extends Object implements SecurityTokenHandler
Constructor and Description |
---|
AbstractSAMLTokenHandler()
Deprecated.
default constructor
|
Modifier and Type | Method and Description |
---|---|
KeyProvider |
getKeyProvider(SecurityToken token,
MessageContext ctx)
Deprecated.
get the saml key provider
|
abstract QName[] |
getQNames()
Deprecated.
get QNames of saml assertion
|
SecurityToken |
getSecurityToken(SecurityTokenReference str,
MessageContext ctx)
Deprecated.
get security token based on referenece
|
SecurityToken |
getSecurityToken(String valueType,
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(String valueType,
String issuer,
Purpose p,
ContextHandler ctxHandler)
Deprecated.
Get the Security token from context handler base on the value type.
|
SecurityTokenReference |
getSTR(QName STRType,
String valueType,
SecurityToken token)
Deprecated.
new saml token reference
|
Subject |
getSubject(SecurityToken token,
MessageContext msgCtx)
Deprecated.
Get authenticated subject from saml token
|
abstract String[] |
getValueTypes()
Deprecated.
SAML value types
|
abstract boolean |
isSaml2()
Deprecated.
|
abstract boolean |
isSupportedTokenType(String tokenType)
Deprecated.
|
abstract boolean |
isSupportedValueType(String valueType)
Deprecated.
|
boolean |
matches(SecurityToken token,
String tokenType,
String issuerName,
ContextHandler ctxHandler,
Purpose p)
Deprecated.
check if the token should be handled by saml token handler
|
SecurityToken |
newSecurityToken(Node node)
Deprecated.
Create a new SAML token.
|
SecurityTokenReference |
newSecurityTokenReference(Node node)
Deprecated.
Create a new securityTokenReference of given saml assertion
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateProcessed, validateUnmarshalled
public AbstractSAMLTokenHandler()
public abstract QName[] getQNames()
getQNames
in interface SecurityTokenHandler
public abstract String[] getValueTypes()
getValueTypes
in interface SecurityTokenHandler
public abstract boolean isSupportedTokenType(String tokenType)
public abstract boolean isSupportedValueType(String valueType)
public abstract boolean isSaml2()
public SecurityToken getSecurityToken(String valueType, Object credentials, ContextHandler ctxHandler) throws WSSecurityException
getSecurityToken
in interface SecurityTokenHandler
valueType
- 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(String valueType, String issuer, Purpose p, ContextHandler ctxHandler) throws WSSecurityException
getSecurityToken
in interface SecurityTokenHandler
valueType
- saml token type can be either SAML TP 1.0 or 1.1 value typesissuer
- p
- ctxHandler
- WSSecurityException
public SecurityTokenReference getSTR(QName STRType, String valueType, SecurityToken token) throws WSSecurityException
getSTR
in interface SecurityTokenHandler
STRType
- type of security token referencevalueType
- SAML_VALUE_TYPEtoken
- saml tokenWSSecurityException
public SecurityToken newSecurityToken(Node node) throws MarshalException
newSecurityToken
in interface SecurityTokenHandler
node
- node of saml assertionMarshalException
public SecurityTokenReference newSecurityTokenReference(Node node) throws MarshalException
newSecurityTokenReference
in interface SecurityTokenHandler
node
- node of saml assertionMarshalException
- occurs during processpublic KeyProvider getKeyProvider(SecurityToken token, MessageContext ctx)
getKeyProvider
in interface SecurityTokenHandler
token
- saml tokenctx
- message contextpublic SecurityToken getSecurityToken(SecurityTokenReference str, MessageContext ctx) throws WSSecurityException
getSecurityToken
in interface SecurityTokenHandler
str
- SecurityTokenReference of saml tokenctx
- message contextWSSecurityException
- occurs during processpublic boolean matches(SecurityToken token, String tokenType, String issuerName, ContextHandler ctxHandler, Purpose p)
matches
in interface SecurityTokenHandler
token
- token to checktokenType
- token type to checkissuerName
- issuer of the saml tokenctxHandler
- context handlerp
- purposepublic Subject getSubject(SecurityToken token, MessageContext msgCtx) throws WSSecurityException
getSubject
in interface SecurityTokenHandler
token
- saml tokenmsgCtx
- message contextWSSecurityException
- occurs during process