public class SAMLTrustCredentialProvider extends AbstractSAMLCredentialProvider
Modifier and Type | Field and Description |
---|---|
protected static ContextHandler |
EMPTY_CONTEXT |
protected static String[] |
SAML_VALUE_TYPES |
Modifier and Type | Method and Description |
---|---|
Object |
getCredential(String tokenType,
String issuerName,
ContextHandler ctxHandler,
Purpose p)
if CredentialManager is not configured, just return the credential object
otherwise retrieve the saml credential from the CredentialManager
|
protected static MessageContext |
getMessageContext(SecurityTokenContextHandler securityCtxHandler) |
protected static SecurityTokenContextHandler |
getSecurityCtxHandler(ContextHandler ctxHandler) |
String[] |
getValueTypes()
Return token types supported by cred providers extending this class.
|
getKeyInfoCredential, getKeyInfoCredential, getSAMLAttributeData
protected static final ContextHandler EMPTY_CONTEXT
protected static final String[] SAML_VALUE_TYPES
public Object getCredential(String tokenType, String issuerName, ContextHandler ctxHandler, Purpose p)
AbstractSAMLCredentialProvider
getCredential
in interface CredentialProvider
getCredential
in class AbstractSAMLCredentialProvider
tokenType
- saml token typeissuerName
- issuer name is not usedctxHandler
- context handler to create the new saml credentialp
- purpose of saml tokenprotected static SecurityTokenContextHandler getSecurityCtxHandler(ContextHandler ctxHandler)
protected static MessageContext getMessageContext(SecurityTokenContextHandler securityCtxHandler)
public String[] getValueTypes()
AbstractSAMLCredentialProvider
getValueTypes
in interface CredentialProvider
getValueTypes
in class AbstractSAMLCredentialProvider