|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.identity.wss.provider.ProviderConfig
public abstract class ProviderConfig
This class ProviderConfig represents the web services
server provider or the web services client provider configuration.
All the static methods in this class are for the persistent operations.
| Field Summary | |
|---|---|
protected String |
attributeNS
|
protected String |
authenticationChain
|
protected boolean |
forceAuthn
|
protected boolean |
includeMemberships
|
protected boolean |
isDefaultKeyStore
|
protected boolean |
isRequestEncrypted
|
protected boolean |
isRequestHeaderEncrypted
|
protected boolean |
isRequestSigned
|
protected boolean |
isResponseEncrypted
|
protected boolean |
isResponseSigned
|
protected String |
keyPasswd
|
protected KeyStore |
keyStore
|
protected String |
ksFile
|
protected String |
ksPasswd
|
protected String |
nameIDMapper
|
protected boolean |
preserveSecHeaders
|
protected String |
privateKeyAlias
|
protected String |
privateKeyType
|
protected Properties |
properties
|
protected String |
providerName
|
protected String |
providerType
|
protected String |
publicKeyAlias
|
protected Set |
samlAttributes
|
protected List |
secMech
|
protected String |
serviceType
|
protected String |
serviceURI
|
protected TrustAuthorityConfig |
taconfig
|
protected List |
trustAuthorities
|
protected List |
usercredentials
|
static String |
WSC
Constant to define the web services client type. |
static String |
WSP
Constant to define the web services provider type. |
protected String |
wspEndpoint
|
static String |
WSS_PROVIDER_CONFIG_PLUGIN
Property for the web services provider configuration plugin. |
protected String |
wssProxyEndpoint
|
| Constructor Summary | |
|---|---|
ProviderConfig()
|
|
| Method Summary | |
|---|---|
protected abstract void |
delete()
Deletes the provider configuration |
static void |
deleteProvider(String providerName,
String providerType)
Removes the provider configuration. |
boolean |
forceUserAuthentication()
Returns true if the user force authentication is enabled. |
static List |
getAllMessageLevelSecurityMech()
Returns the list of message level security mechanism objects. |
static List |
getAllSupportedSecurityMech()
Returns the list of all available security mechanism objects. |
String |
getAuthenticationChain()
Returns the authentication chain mechanism to be used. |
String |
getKeyAlias()
Returns the key alias for this provider. |
String |
getKeyEncryptedPassword()
Returns the keystore encrypted password. |
String |
getKeyPassword()
Returns the key password in the keystore. |
KeyStore |
getKeyStore()
Returns the provider JKS KeyStore |
String |
getKeyStoreEncryptedPasswd()
Returns the keystore encrypted password. |
String |
getKeyStoreFile()
Returns the keystore file. |
String |
getKeyStorePassword()
Returns the keystore password. |
String |
getKeyType()
Returns the key type for this provider. |
String |
getNameIDMapper()
Returns the NameID mapper class |
String |
getProperty(String property)
Returns the value of the property. |
static ProviderConfig |
getProvider(String providerName,
String providerType)
Returns the provider configuration for a given provider name. |
static ProviderConfig |
getProvider(String providerName,
String providerType,
boolean isEndPoint)
Returns the provider configuration for a given provider name. |
String |
getProviderName()
Returns the name of the Provider. |
String |
getProviderType()
Returns the provider type. |
String |
getPublicKeyAlias()
Returns the Public key alias for this provider's partner. |
Set |
getSAMLAttributeMapping()
Returns the SAML Attribute Mapping list. |
String |
getSAMLAttributeNamespace()
Returns SAML attribute namespace. |
List |
getSecurityMechanisms()
Returns the list of security mechanims that the provider is configured. |
String |
getServiceType()
Returns the service type. |
TrustAuthorityConfig |
getTrustAuthorityConfig()
Returns the provider's trusted authorities list. |
List |
getUsers()
Returns the list of PasswordCredentials of the user. |
String |
getWSPEndpoint()
Returns the endpoint of the web services provider. |
String |
getWSSProxyEndpoint()
Returns the endpoint of the web services security proxy. |
protected abstract void |
init(String providerName,
String providerType,
SSOToken token,
boolean isEndPoint)
Initializes the provider. |
protected abstract boolean |
isExists()
Checks if the provider configuration exists |
static boolean |
isProviderExists(String providerName,
String providerType)
Checks if the provider of given type does exists. |
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. |
boolean |
preserveSecurityHeader()
Returns true if security header needs to be preserved. |
static void |
saveProvider(ProviderConfig config)
Saves the Provider in the configuration repository. |
void |
setAuthenticationChain(String authenticationChain)
Sets the authentication chain mechanism. |
void |
setDefaultKeyStore(boolean set)
Sets the provider to use the default keystore. |
void |
setForceUserAuthentication(boolean forceAuthn)
Sets the user force authentication attribute. |
void |
setIncludeMemberships(boolean include)
Sets a flag to include memberships for SAML attribute mapping. |
void |
setKeyAlias(String alias)
Sets the key alias for this provider. |
void |
setKeyStore(KeyStore keyStore,
String password)
Sets the keystore for this provider. |
void |
setKeyStore(String fileName,
String keyStorePassword,
String keyPassword)
Sets the keystore for this provider. |
void |
setKeyType(String keyType)
Sets the key type for this provider. |
void |
setNameIDMapper(String nameIDMapper)
Sets the NameID Mapper class. |
void |
setPreserveSecurityHeader(boolean preserve)
Sets if security header needs to be preserved. |
void |
setProperty(String property,
String value)
Sets the value for the given property in Provider Configuration. |
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 |
setSAMLAttributeMapping(Set attributeMap)
Sets the list of SAML attribute mappings. |
void |
setSAMLAttributeNamespace(String attributeNS)
Sets SAML attribute namespace. |
void |
setSecurityMechanisms(List authMech)
Sets the list of security mechanisms. |
void |
setServiceType(String serviceType)
Sets the service type. |
void |
setTrustAuthorityConfig(TrustAuthorityConfig taconfig)
Sets the trusted authority configurations. |
void |
setUsers(List usercredentials)
Sets the user credentials list. |
void |
setWSPEndpoint(String endpoint)
Sets the web services provider endpoint. |
void |
setWSSProxyEndpoint(String endpoint)
Sets the web services security proxy endpoint. |
boolean |
shouldIncludeMemberships()
Checks if the memberships should be included in the SAML attribute mapping. |
protected abstract void |
store()
Stores the provider configuration |
boolean |
useDefaultKeyStore()
Returns true if the provider uses default keystore. |
| Field Detail |
|---|
public static final String WSC
public static final String WSP
public static final String WSS_PROVIDER_CONFIG_PLUGIN
protected List secMech
protected String serviceURI
protected String providerName
protected String wspEndpoint
protected String wssProxyEndpoint
protected String providerType
protected KeyStore keyStore
protected String privateKeyAlias
protected String privateKeyType
protected String publicKeyAlias
protected boolean isResponseSigned
protected boolean isResponseEncrypted
protected boolean isRequestSigned
protected boolean isRequestEncrypted
protected boolean isRequestHeaderEncrypted
protected List trustAuthorities
protected String ksPasswd
protected String keyPasswd
protected String ksFile
protected Properties properties
protected List usercredentials
protected String serviceType
protected boolean isDefaultKeyStore
protected boolean forceAuthn
protected boolean preserveSecHeaders
protected String authenticationChain
protected TrustAuthorityConfig taconfig
protected Set samlAttributes
protected boolean includeMemberships
protected String nameIDMapper
protected String attributeNS
| Constructor Detail |
|---|
public ProviderConfig()
| Method Detail |
|---|
public List getSecurityMechanisms()
public void setSecurityMechanisms(List authMech)
authMech - the list of security mechanisms.public String getProviderName()
public String getProperty(String property)
public void setProperty(String property,
String value)
property - the name of the being set.value - the property value being set.public String getWSPEndpoint()
public void setWSPEndpoint(String endpoint)
endpoint - the web services provider endpoint.public String getWSSProxyEndpoint()
public void setWSSProxyEndpoint(String endpoint)
endpoint - the web services security proxy endpoint.public void setServiceType(String serviceType)
serviceType - the service type.public String getServiceType()
public void setUsers(List usercredentials)
usercredentials - list of PasswordCredentialobjects.public List getUsers()
PasswordCredentials of the user.
PasswordCredential objects.public String getProviderType()
ProviderConfig.WSP or ProviderConfig.WSC
public KeyStore getKeyStore()
KeyStore
KeyStorepublic String getKeyStoreFile()
public String getKeyStorePassword()
public String getKeyStoreEncryptedPasswd()
public String getKeyPassword()
public String getKeyEncryptedPassword()
public void setKeyStore(String fileName,
String keyStorePassword,
String keyPassword)
throws ProviderException
fileName - the provider key store fully qualified file name.keyStorePassword - the password required to access the key
store file.keyPassword - the password required to access the key from the
keystore.
ProviderException - if the key store file does not exist
or an invalid password.
public void setKeyStore(KeyStore keyStore,
String password)
keyStore - the provider key store.password - the password required to access the key store file.public String getKeyType()
public void setKeyType(String keyType)
keyType - the key type for this provider.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 boolean useDefaultKeyStore()
public void setDefaultKeyStore(boolean set)
set - boolean variable to enable or disable to use the default
keystore.public Set getSAMLAttributeMapping()
public void setSAMLAttributeMapping(Set attributeMap)
attributeMap - the list of SAML attribute mappingpublic boolean shouldIncludeMemberships()
public void setIncludeMemberships(boolean include)
include - boolean flag to indicate if the memberships needs to
be included.public String getNameIDMapper()
public void setNameIDMapper(String nameIDMapper)
nameIDMapper - NameID Mapper class.public String getSAMLAttributeNamespace()
public void setSAMLAttributeNamespace(String attributeNS)
attributeNS - SAML attribute namespace.public TrustAuthorityConfig getTrustAuthorityConfig()
TrustAuthorityConfig s.public void setTrustAuthorityConfig(TrustAuthorityConfig taconfig)
taconfig - instance of the TrustAuthorityConfig.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 boolean forceUserAuthentication()
public void setForceUserAuthentication(boolean forceAuthn)
forceAuthn - the user force authentication attribute.public boolean preserveSecurityHeader()
public void setPreserveSecurityHeader(boolean preserve)
preserve - value to be set, true if the security header needs
to be preserved, false otherwise.public String getAuthenticationChain()
public void setAuthenticationChain(String authenticationChain)
authenticationChain - the name of the authentication chain
mechanism.
protected abstract void store()
throws ProviderException
ProviderException - if there is any failure.
protected abstract void delete()
throws ProviderException
ProviderException - if there is any failure.protected abstract boolean isExists()
protected abstract void init(String providerName,
String providerType,
SSOToken token,
boolean isEndPoint)
throws ProviderException
providerName - the provider name.providerType - the provider type.token - Single Sign-on token.
ProviderException - if there is any failure.
public static void saveProvider(ProviderConfig config)
throws ProviderException
config - the provider configuration.
ProviderException - if the creation is failed.
public static ProviderConfig getProvider(String providerName,
String providerType)
throws ProviderException
providerName - the provider name.providerType - the provider type.
ProviderException - if unable to retrieve.
public static ProviderConfig getProvider(String providerName,
String providerType,
boolean isEndPoint)
throws ProviderException
providerName - the provider name.providerType - the provider type.isEndPoint - flag to indicate search based on WSP end point.
ProviderException - if unable to retrieve.
public static boolean isProviderExists(String providerName,
String providerType)
providerName - the name of the provider.providerType - type of the provider.
public static void deleteProvider(String providerName,
String providerType)
throws ProviderException
providerName - the name of the provider.providerType - the type of the provider.
ProviderException - if any failure.public static List getAllSupportedSecurityMech()
SecurityMechanism objects.public static List getAllMessageLevelSecurityMech()
SecurityMechanism objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||