public abstract class TrustAuthorityConfig extends Object
TrustAuthorityConfig
represents the
configuration of a Trusted Authority entity.
The Trusted Authority configuration is used to register the provider configuration information at a Trusted Authority.
This class can be extended to define the trust authority config such as Discovery client configuration, WS-Trust protocol based client (STS client) configuration.
Pluggable implementation of this abstract class can choose to store this configuration in desired configuration store. This pluggable implementation class can be configured in client's AMConfig.properties as value of "com.sun.identity.wss.discovery.config.plugin" property for Discovery client configuration and "com.sun.identity.wss.sts.config.plugin" property for STS client configuration. Having obtained an instance of TrustAuthorityConfig, its methods can be called to create, delete, modify, retrieve WSS agent profile and configuration for Discovery client or STS client attributes (key /value pairs).
All the static methods in this class are for the persistent operations.
Modifier and Type | Field and Description |
---|---|
protected static SSOToken |
customAdminToken |
static String |
DISCOVERY_TRUST_AUTHORITY
Trusted Authority client configuration type.
|
protected String |
encryptionAlgorithm |
protected int |
encryptionStrength |
protected String |
endpoint |
protected boolean |
isRequestEncrypted |
protected boolean |
isRequestHeaderEncrypted |
protected boolean |
isRequestSigned |
protected boolean |
isResponseEncrypted |
protected boolean |
isResponseSigned |
protected String |
name |
protected String |
privateKeyAlias |
protected String |
publicKeyAlias |
protected List |
secMech |
protected String |
signingRefType |
static String |
STS_TRUST_AUTHORITY |
protected String |
type |
protected List |
usercredentials |
static String |
WSS_DISCOVERY_CONFIG_PLUGIN
Property string for the web services discovery client configuration
plugin.
|
static String |
WSS_STS_CONFIG_PLUGIN
Property string for the web services STS client configuration plugin.
|
Constructor and Description |
---|
TrustAuthorityConfig() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
delete()
Deletes the trust authrority configuration.
|
static void |
deleteConfig(String name,
String type)
Deletes the trust authority configuration.
|
static TrustAuthorityConfig |
getConfig(String name,
String type)
Returns the trust authority configuration object.
|
String |
getEncryptionAlgorithm()
Returns the encryption algorithm.
|
int |
getEncryptionStrength()
Returns the encryption data strength.
|
String |
getEndpoint()
Returns the trust authority end point.
|
String |
getKeyAlias()
Returns the key alias for this trust authority client.
|
String |
getName()
Returns the trust authority name.
|
String |
getPublicKeyAlias()
Returns the Public key alias for this trust authority client's partner.
|
List |
getSecurityMech()
Returns the list of security mechanisms that the trust authority supports.
|
String |
getSigningRefType()
Returns signing reference type.
|
String |
getType()
Returns the trust authority type.
|
List |
getUsers()
Returns the list of
PasswordCredential s of the user. |
protected abstract void |
init(String name,
String type,
SSOToken ssoToken)
Initialize the trust authority.
|
boolean |
isRequestEncryptEnabled()
Checks if the request needs to be encrypted or not.
|
boolean |
isRequestHeaderEncryptEnabled()
Checks if the request header needs to be encrypted or not.
|
boolean |
isRequestSignEnabled()
Checks if the request needs to be signed or not.
|
boolean |
isResponseEncryptEnabled()
Checks if the response needs to be encrypted or not.
|
boolean |
isResponseSignEnabled()
Checks if the response needs to be signed or not.
|
static void |
saveConfig(TrustAuthorityConfig config)
Saves the trust authority configuration.
|
void |
setAdminToken(SSOToken adminToken)
Sets the admin token.
|
void |
setEncryptionAlgorithm(String encAlg)
Sets the encryption algorithm.
|
void |
setEncryptionStrength(int keyStrength)
Sets the encryption data strength.
|
void |
setEndpoint(String endpoint)
Sets the trust authority end point.
|
void |
setKeyAlias(String alias)
Sets the key alias for this trust authority client.
|
void |
setName(String name)
Sets the trust authority name.
|
void |
setPublicKeyAlias(String alias)
Sets the Public key alias for this trust authority client's partner.
|
void |
setRequestEncryptEnabled(boolean enable)
Sets the request encrypt enable flag.
|
void |
setRequestHeaderEncryptEnabled(boolean enable)
Sets the request header encrypt enable flag.
|
void |
setRequestSignEnabled(boolean enable)
Sets the request sign enable flag.
|
void |
setResponseEncryptEnabled(boolean enable)
Sets the response encrypt enable flag.
|
void |
setResponseSignEnabled(boolean enable)
Sets the response sign enable flag.
|
void |
setSecurityMechs(List secMech)
Sets the list of security mechanisms that the trust authority supports.
|
void |
setSigningRefType(String refType)
Sets the signing reference type.
|
void |
setType(String type)
Sets the trust authority type.
|
void |
setUsers(List usercredentials)
Sets the user credentials list.
|
protected abstract void |
store()
Saves the trust authority configuration.
|
protected String endpoint
protected String privateKeyAlias
protected String publicKeyAlias
protected String name
protected String type
protected List secMech
protected boolean isResponseSigned
protected boolean isResponseEncrypted
protected boolean isRequestSigned
protected boolean isRequestEncrypted
protected boolean isRequestHeaderEncrypted
protected List usercredentials
protected String encryptionAlgorithm
protected int encryptionStrength
protected String signingRefType
protected static SSOToken customAdminToken
public static final String WSS_DISCOVERY_CONFIG_PLUGIN
public static final String WSS_STS_CONFIG_PLUGIN
public static final String DISCOVERY_TRUST_AUTHORITY
public static final String STS_TRUST_AUTHORITY
public String getName()
public void setName(String name)
name
- the name of the trust authority.public String getType()
public void setType(String type)
type
- the type of the trust authority.public String getEndpoint()
public void setEndpoint(String endpoint)
endpoint
- the end point for the trust authority.public String getKeyAlias()
public void setKeyAlias(String alias)
alias
- the key alias for the trust authority client.public String getPublicKeyAlias()
public void setPublicKeyAlias(String alias)
alias
- the Public key alias for this trust authority client's
partner.public void setSecurityMechs(List secMech)
secMech
- list of security mechanisms that the trust
authority supports.public List getSecurityMech()
public boolean isResponseSignEnabled()
public void setResponseSignEnabled(boolean enable)
enable
- enables the response signing.public boolean isResponseEncryptEnabled()
public void setResponseEncryptEnabled(boolean enable)
enable
- enables the response encryption.public boolean isRequestSignEnabled()
public void setRequestSignEnabled(boolean enable)
enable
- enables the request signing.public boolean isRequestEncryptEnabled()
public void setRequestEncryptEnabled(boolean enable)
enable
- enables the request encryption.public boolean isRequestHeaderEncryptEnabled()
public void setRequestHeaderEncryptEnabled(boolean enable)
enable
- enables the request header encryption.public void setUsers(List usercredentials)
usercredentials
- list of PasswordCredential
objects.public List getUsers()
PasswordCredential
s of the user.PasswordCredential
objects.public String getSigningRefType()
public void setSigningRefType(String refType)
refType
- the signing reference type.public String getEncryptionAlgorithm()
public void setEncryptionAlgorithm(String encAlg)
encAlg
- the encryption algorithm.public int getEncryptionStrength()
public void setEncryptionStrength(int keyStrength)
keyStrength
- the encryption data strength.protected abstract void init(String name, String type, SSOToken ssoToken) throws ProviderException
name
- the name of the trust authority.type
- the type of the trust authority.ssoToken
- Single sign-on token.ProviderException
- if the initialization fails.protected abstract void store() throws ProviderException
ProviderException
- if the trust authority configuration
is unable to save.protected abstract void delete() throws ProviderException
ProviderException
public static TrustAuthorityConfig getConfig(String name, String type) throws ProviderException
name
- the name of the trust authority.type
- the type of the trust authority. The type must have
one of the following values.
ProviderException
- if any failure in
retrieving the trust authority configuration.public static void saveConfig(TrustAuthorityConfig config) throws ProviderException
config
- the trust authority configuration.ProviderException
- if any failure in
saving the configuration.public static void deleteConfig(String name, String type) throws ProviderException
name
- the name of the trust authority configuration.type
- the type of the trust authority. The type must have
one of the values.
ProviderException
- if any failure in
deleting the trust authority configuration.public void setAdminToken(SSOToken adminToken)
TrustAuthorityConfig
object.
This admin token needs to be the valid SSOToken of the user who has
"Agent Administrator" privileges.adminToken
- the agent admin token.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.