|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.identity.wss.provider.TrustAuthorityConfig
public abstract class TrustAuthorityConfig
This is an abstract that represents the configuration about a trusted authority.
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 configuration, ws-trust etc.
| Field Summary | |
|---|---|
static String |
DISCOVERY_TRUST_AUTHORITY
Discovery service configuration type. |
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
|
static String |
STS_TRUST_AUTHORITY
|
protected String |
type
|
protected List |
usercredentials
|
static String |
WSS_DISCOVERY_CONFIG_PLUGIN
Property string for the web services discovery configuration plugin. |
static String |
WSS_STS_CONFIG_PLUGIN
Property string for the web services sts configuration plugin. |
| Constructor Summary | |
|---|---|
TrustAuthorityConfig()
|
|
| Method Summary | |
|---|---|
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 |
getEndpoint()
Returns the authority end point. |
String |
getKeyAlias()
Returns the key alias for this provider. |
String |
getName()
Returns the trust authority name. |
String |
getPublicKeyAlias()
Returns the Public key alias for this provider's partner. |
List |
getSecurityMech()
Returns the list of security mechanisms that the trust authority supports |
String |
getType()
Returns the trust authority type. |
List |
getUsers()
Returns the list of PasswordCredentials 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 |
setEndpoint(String endpoint)
Sets the end point. |
void |
setKeyAlias(String alias)
Sets the key alias for this provider. |
void |
setName(String name)
|
void |
setPublicKeyAlias(String alias)
Sets the Public key alias for this provider'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 |
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. |
| Field Detail |
|---|
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
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
| Constructor Detail |
|---|
public TrustAuthorityConfig()
| Method Detail |
|---|
public String getName()
public void setName(String name)
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 this provider.public String getPublicKeyAlias()
public void setPublicKeyAlias(String alias)
alias - the Public key alias for this provider's partner.public void setSecurityMechs(List secMech)
secMech - list of security mechanisms that the trust
authority supportspublic 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 PasswordCredentialobjects.public List getUsers()
PasswordCredentials of the user.
PasswordCredential objects.
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||