public class SAMLTokenIssuerConfig extends AbstractIssuerConfig
SAMLTokenIssuerSAMLTokenIssuerAbstractIssuerConfig.KeyComputation| Modifier and Type | Field and Description |
|---|---|
protected SAMLCallbackHandler |
callbackHandler |
protected String |
callbackHandlerName |
static QName |
DIGEST_ALGORITHM |
protected String |
digestAlgorithm |
static QName |
ISSUER_NAME |
protected String |
issuerKeyAlias |
protected String |
issuerKeyPassword |
protected String |
issuerName |
protected String |
persisterClassName |
protected org.apache.axiom.om.OMElement |
persisterElement |
protected Map<String,String> |
persisterPropertyMap |
static QName |
SAML_CALLBACK_CLASS |
static QName |
SAML_ISSUER_CONFIG
The QName of the configuration element of the SAMLTokenIssuer
|
static QName |
SIGNATURE_ALGORITHM |
protected String |
signatureAlgorithm |
protected boolean |
tokenStoreDisabled |
protected Map |
trustedServices |
protected String |
trustStorePropFile |
static QName |
USE_SAML_ATTRIBUTE_STATEMENT |
ADD_REQUESTED_ATTACHED_REF, ADD_REQUESTED_UNATTACHED_REF, addRequestedAttachedRef, addRequestedUnattachedRef, ATTR_CLASS_QN, ATTR_PROP_NAME, ATTR_PROP_NAME_QN, CRYPTO, CRYPTO_PROPERTIES, cryptoElement, cryptoPropertiesElement, cryptoPropertiesFile, keyComputation, keySize, LOCAL_PROPERTY_CLASS, LOCAL_PROPERTY_QN, LOCAL_PROPERTY_STORAGE_PATH, LOCAL_PROPERTY_THRESHOLD, PROOF_KEY_TYPE, proofKeyType, PROPERTY, PROVIDER, TOKEN_PERSISTER_QN, TOKEN_STORE_DISABLED_QN, ttl| Constructor and Description |
|---|
SAMLTokenIssuerConfig(org.apache.axiom.om.OMElement elem)
Create a SAMLTokenIssuer configuration using the give config element
|
SAMLTokenIssuerConfig(String configFilePath)
Create a SAMLTokenIssuer configuration with a config file picked from the
given location.
|
SAMLTokenIssuerConfig(String issuerName,
String cryptoProviderClassName,
Properties cryptoProps)
Create a new configuration with issuer name and crypto information
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTrustedServiceEndpointAddress(String address,
String alias)
Add a new trusted service endpoint address with its certificate
|
SAMLCallbackHandler |
getCallbackHander()
Deprecated.
|
SAMLCallbackHandler |
getCallbackHandler() |
String |
getCallbackHandlerName() |
String |
getDigestAlgorithm() |
String |
getIssuerKeyAlias() |
String |
getIssuerKeyPassword() |
org.apache.axis2.description.Parameter |
getParameter()
Generate an Axis2 parameter for this configuration
|
String |
getPersisterClassName() |
org.apache.axiom.om.OMElement |
getPersisterElement() |
Map |
getPersisterPropertyMap() |
X509Certificate |
getServiceCert(org.apache.ws.security.components.crypto.Crypto crypto,
String serviceAddress)
Uses the
wst:AppliesTo to figure out the certificate to
encrypt the secret in the SAML token |
String |
getSignatureAlgorithm() |
Map |
getTrustedServices()
Return the list of trusted services as a
java.util.Map. |
boolean |
isTokenStoreDisabled() |
void |
setCallbackHander(SAMLCallbackHandler callbackHandler)
Deprecated.
|
void |
setCallbackHandler(SAMLCallbackHandler callbackHandler) |
void |
setCallbackHandlerName(String callbackHandlerName) |
void |
setCryptoProperties(String providerClassName,
Properties props)
Set crypto information using WSS4J mechanisms
|
void |
setDigestAlgorithm(String digestAlgorithm) |
void |
setIssuerKeyAlias(String issuerKeyAlias) |
void |
setIssuerKeyPassword(String issuerKeyPassword) |
void |
setIssuerName(String issuerName) |
void |
setPersisterClassName(String persisterClassName) |
void |
setPersisterPropertyMap(Map persisterPropertyMap) |
void |
setSignatureAlgorithm(String signatureAlgorithm) |
void |
setTokenStoreDisabled(boolean tokenStoreDisabled) |
void |
setTrustedServices(Map trustedServices) |
void |
setTrustStorePropFile(String trustStorePropFile) |
getKeyComputation, getKeySize, getProofKeyType, setAddRequestedAttachedRef, setAddRequestedUnattachedRef, setKeyComputation, setKeySize, setProofKeyType, setTtlpublic static final QName SAML_ISSUER_CONFIG
public static final QName USE_SAML_ATTRIBUTE_STATEMENT
public static final QName ISSUER_NAME
public static final QName SAML_CALLBACK_CLASS
public static final QName SIGNATURE_ALGORITHM
public static final QName DIGEST_ALGORITHM
protected String issuerKeyAlias
protected String issuerKeyPassword
protected String issuerName
protected Map trustedServices
protected String trustStorePropFile
protected SAMLCallbackHandler callbackHandler
protected String callbackHandlerName
protected org.apache.axiom.om.OMElement persisterElement
protected String persisterClassName
protected boolean tokenStoreDisabled
protected String signatureAlgorithm
protected String digestAlgorithm
public SAMLTokenIssuerConfig(String issuerName, String cryptoProviderClassName, Properties cryptoProps)
issuerName - Name of the issuercryptoProviderClassName - WSS4J Crypto impl class namecryptoProps - Configuration properties of crypto implpublic SAMLTokenIssuerConfig(String configFilePath) throws TrustException
configFilePath - Path to the config fileTrustExceptionpublic SAMLTokenIssuerConfig(org.apache.axiom.om.OMElement elem)
throws TrustException
elem - Configuration element as an OMElementTrustExceptionpublic org.apache.axis2.description.Parameter getParameter()
public void setIssuerKeyAlias(String issuerKeyAlias)
public String getIssuerKeyAlias()
public void setIssuerKeyPassword(String issuerKeyPassword)
public String getIssuerKeyPassword()
public void setIssuerName(String issuerName)
public void setTrustedServices(Map trustedServices)
public void setTrustStorePropFile(String trustStorePropFile)
public void addTrustedServiceEndpointAddress(String address, String alias)
address - Service endpoint addressalias - certificate aliaspublic void setCryptoProperties(String providerClassName, Properties props)
providerClassName - Provider class - an implementation of
org.apache.ws.security.components.crypto.Cryptoprops - Configuration propertiespublic Map getTrustedServices()
java.util.Map.
The services addresses are the keys and cert aliases available under
those keys.@Deprecated public SAMLCallbackHandler getCallbackHander()
@Deprecated public void setCallbackHander(SAMLCallbackHandler callbackHandler)
public SAMLCallbackHandler getCallbackHandler()
public void setCallbackHandler(SAMLCallbackHandler callbackHandler)
public String getCallbackHandlerName()
public void setCallbackHandlerName(String callbackHandlerName)
public X509Certificate getServiceCert(org.apache.ws.security.components.crypto.Crypto crypto, String serviceAddress) throws org.apache.ws.security.WSSecurityException
wst:AppliesTo to figure out the certificate to
encrypt the secret in the SAML tokencrypto - serviceAddress - The address of the serviceorg.apache.ws.security.WSSecurityExceptionpublic String getPersisterClassName()
public void setPersisterClassName(String persisterClassName)
public Map getPersisterPropertyMap()
public void setPersisterPropertyMap(Map persisterPropertyMap)
public org.apache.axiom.om.OMElement getPersisterElement()
public boolean isTokenStoreDisabled()
public void setTokenStoreDisabled(boolean tokenStoreDisabled)
public String getSignatureAlgorithm()
public void setSignatureAlgorithm(String signatureAlgorithm)
public String getDigestAlgorithm()
public void setDigestAlgorithm(String digestAlgorithm)
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.