public class SAMLTokenIssuerConfig extends AbstractIssuerConfig
SAMLTokenIssuer
SAMLTokenIssuer
AbstractIssuerConfig.KeyComputation
Modifier and Type | Field and Description |
---|---|
protected SAMLCallbackHandler |
callbackHandler |
protected String |
callbackHandlerName |
static QName |
ISSUER_NAME |
protected String |
issuerKeyAlias |
protected String |
issuerKeyPassword |
protected String |
issuerName |
static QName |
SAML_CALLBACK_CLASS |
static QName |
SAML_ISSUER_CONFIG
The QName of the configuration element of the SAMLTokenIssuer
|
protected Map |
trustedServices |
protected String |
trustStorePropFile |
static QName |
USE_SAML_ATTRIBUTE_STATEMENT |
ADD_REQUESTED_ATTACHED_REF, ADD_REQUESTED_UNATTACHED_REF, addRequestedAttachedRef, addRequestedUnattachedRef, CRYPTO, CRYPTO_PROPERTIES, cryptoElement, cryptoPropertiesElement, cryptoPropertiesFile, keyComputation, keySize, PROOF_KEY_TYPE, proofKeyType, PROPERTY, PROVIDER, 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() |
org.apache.ws.security.components.crypto.Crypto |
getIssuerCrypto(ClassLoader classLoader)
This method will create a Crypto object based on property values defined in cryptoElement or
cryptoPropertiesFile.
|
String |
getIssuerKeyAlias() |
String |
getIssuerKeyPassword() |
String |
getIssuerName() |
org.apache.axis2.description.Parameter |
getParameter()
Generate an Axis2 parameter for this configuration
|
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 |
Map |
getTrustedServices()
Return the list of trusted services as a
java.util.Map . |
String |
getTrustStorePropFile() |
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 |
setIssuerKeyAlias(String issuerKeyAlias) |
void |
setIssuerKeyPassword(String issuerKeyPassword) |
void |
setIssuerName(String issuerName) |
void |
setTrustedServices(Map trustedServices) |
void |
setTrustStorePropFile(String trustStorePropFile) |
getCryptoElement, getCryptoPropertiesElement, getCryptoPropertiesFile, getKeyComputation, getKeySize, getProofKeyType, getTtl, isAddRequestedAttachedRef, isAddRequestedUnattachedRef, setAddRequestedAttachedRef, setAddRequestedUnattachedRef, setKeyComputation, setKeySize, setProofKeyType, setTtl
public 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
protected String issuerKeyAlias
protected String issuerKeyPassword
protected String issuerName
protected Map trustedServices
protected String trustStorePropFile
protected SAMLCallbackHandler callbackHandler
protected String callbackHandlerName
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 fileTrustException
public SAMLTokenIssuerConfig(org.apache.axiom.om.OMElement elem) throws TrustException
elem
- Configuration element as an OMElement
TrustException
public 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 String getIssuerName()
public String getTrustStorePropFile()
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 TrustException
wst:AppliesTo
to figure out the certificate to
encrypt the secret in the SAML tokencrypto
- serviceAddress
- The address of the serviceTrustException
- If unable to find certificate by given alias.public org.apache.ws.security.components.crypto.Crypto getIssuerCrypto(ClassLoader classLoader) throws TrustException
classLoader
- A class loader to pass into CryptoFactory.TrustException
- If an error occurred while creating the Crypto object.Copyright © Apache Software Foundation. All Rights Reserved.