|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.wss.provider.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 | |
static java.lang.String |
WSC
Constant to define the web services client type. |
static java.lang.String |
WSP
Constant to define the web services provider type. |
Constructor Summary | |
ProviderConfig()
|
Method Summary | |
static void |
deleteProvider(java.lang.String providerName,
java.lang.String providerType)
Removes the provider configuration. |
static java.util.List |
getAllMessageLevelSecurityMech()
Returns the list of message level security mechanism objects. |
static java.util.List |
getAllSupportedSecurityMech()
Returns the list of all available security mechanism objects. |
java.lang.String |
getKeyAlias()
Returns the key alias for this provider. |
java.lang.String |
getKeyEncryptedPassword()
Returns the keystore encrypted password. |
java.lang.String |
getKeyPassword()
Returns the key password in the keystore. |
java.security.KeyStore |
getKeyStore()
Returns the provider JKS KeyStore |
java.lang.String |
getKeyStoreEncryptedPasswd()
Returns the keystore encrypted password. |
java.lang.String |
getKeyStoreFile()
Returns the keystore file. |
java.lang.String |
getKeyStorePassword()
Returns the keystore password. |
java.lang.String |
getProperty(java.lang.String property)
Returns the value of the property. |
static ProviderConfig |
getProvider(java.lang.String providerName,
java.lang.String providerType)
Returns the provider configuration for a given provider name. |
java.lang.String |
getProviderName()
Returns the name of the Provider. |
java.lang.String |
getProviderType()
Returns the provider type. |
java.util.List |
getSecurityMechanisms()
Returns the list of security mechanims that the provider is configured. |
java.lang.String |
getServiceType()
Returns the service type. |
java.util.List |
getTrustAuthorityConfigList()
Returns the provider's trusted authorities list. |
java.util.List |
getUsers()
Returns the list of PasswordCredential s of the user. |
java.lang.String |
getWSPEndpoint()
Returns the endpoint of the web services provider. |
static boolean |
isProviderExists(java.lang.String providerName,
java.lang.String providerType)
Checks if the provider of given type does exists. |
boolean |
isResponseSignEnabled()
Checks if the response needs to be signed or not. |
static void |
saveProvider(ProviderConfig config)
Saves the Provider in the configuration repository. |
void |
setDefaultKeyStore(boolean set)
Sets the provider to use the default keystore. |
void |
setKeyAlias(java.lang.String alias)
Sets the key alias for this provider. |
void |
setKeyStore(java.security.KeyStore keyStore,
java.lang.String password)
Sets the keystore for this provider. |
void |
setKeyStore(java.lang.String fileName,
java.lang.String keyStorePassword,
java.lang.String keyPassword)
Sets the keystore for this provider. |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets the value for the given property in Provider Configuration. |
void |
setResponseSignEnabled(boolean enable)
Sets the response sign enable flag. |
void |
setSecurityMechanisms(java.util.List authMech)
Sets the list of security mechanisms. |
void |
setServiceType(java.lang.String serviceType)
Sets the service type. |
void |
setTrustAuthorityConfigList(java.util.List trustedAuthorities)
Sets the trusted authority configurations. |
void |
setUsers(java.util.List usercredentials)
Sets the user credentials list. |
void |
setWSPEndpoint(java.lang.String endpoint)
Sets the web services provider endpoint. |
boolean |
useDefaultKeyStore()
Returns true if the provider uses default keystore. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String WSC
public static final java.lang.String WSP
Constructor Detail |
public ProviderConfig()
Method Detail |
public java.util.List getSecurityMechanisms()
public void setSecurityMechanisms(java.util.List authMech)
authMech
- the list of security mechanisms.public java.lang.String getProviderName()
public java.lang.String getProperty(java.lang.String property)
public void setProperty(java.lang.String property, java.lang.String value)
property
- the name of the being set.value
- the property value being set.public java.lang.String getWSPEndpoint()
public void setWSPEndpoint(java.lang.String endpoint)
endpoint
- the web services provider endpoint.public void setServiceType(java.lang.String serviceType)
serviceType
- the service type.public java.lang.String getServiceType()
public void setUsers(java.util.List usercredentials)
public java.util.List getUsers()
PasswordCredential
s of the user.
PasswordCredential
objects.public java.lang.String getProviderType()
WSP
or WSC
public java.security.KeyStore getKeyStore()
KeyStore
KeyStore
public java.lang.String getKeyStoreFile()
public java.lang.String getKeyStorePassword()
public java.lang.String getKeyStoreEncryptedPasswd()
public java.lang.String getKeyPassword()
public java.lang.String getKeyEncryptedPassword()
public void setKeyStore(java.lang.String fileName, java.lang.String keyStorePassword, java.lang.String keyPassword) throws com.sun.identity.wss.provider.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(java.security.KeyStore keyStore, java.lang.String password)
keyStore
- the provider key store.password
- the password required to access the key store file.public java.lang.String getKeyAlias()
public void setKeyAlias(java.lang.String alias)
alias
- the key alias for this provider.public boolean useDefaultKeyStore()
public void setDefaultKeyStore(boolean set)
set
- boolean variable to enable or disable to use the default
keystore.public java.util.List getTrustAuthorityConfigList()
TrustAuthorityConfig
s.public void setTrustAuthorityConfigList(java.util.List trustedAuthorities)
trustedAuthorities
- the list of
TrustAuthorityConfig
s.public boolean isResponseSignEnabled()
public void setResponseSignEnabled(boolean enable)
enable
- enable the response signing.public static void saveProvider(ProviderConfig config) throws com.sun.identity.wss.provider.ProviderException
config
- the provider configuration.
ProviderException
- if the creation is failed.public static ProviderConfig getProvider(java.lang.String providerName, java.lang.String providerType) throws com.sun.identity.wss.provider.ProviderException
providerName
- the provider name.providerType
- the provider type.
ProviderException
- if unable to retrieve.public static boolean isProviderExists(java.lang.String providerName, java.lang.String providerType)
providerName
- the name of the provider.providerType
- type of the provider.
public static void deleteProvider(java.lang.String providerName, java.lang.String providerType) throws com.sun.identity.wss.provider.ProviderException
providerName
- the name of the provider.providerType
- the type of the provider.
ProviderException
- if any failure.public static java.util.List getAllSupportedSecurityMech()
SecurityMechanism
objects.public static java.util.List getAllMessageLevelSecurityMech()
SecurityMechanism
objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |