public class JBossJSSESecurityDomain extends Object implements JSSESecurityDomain
Constructor and Description |
---|
JBossJSSESecurityDomain(String securityDomainName) |
Modifier and Type | Method and Description |
---|---|
Properties |
getAdditionalProperties()
Returns the additional properties map
|
Certificate |
getCertificate(String alias)
Returns the certificate with the given alias or null if no such certificate exists, from the
trust store this security domain delegates to.
|
String[] |
getCipherSuites()
Returns the cipher suites that should be enabled on SSLSockets
|
String |
getClientAlias()
Get the preferred client alias name
|
Key |
getKey(String alias,
String serviceAuthToken)
Returns the key with the given alias from the key store this security domain delegates to.
|
String |
getKeyManagerFactoryAlgorithm() |
String |
getKeyManagerFactoryProvider() |
KeyManager[] |
getKeyManagers()
Get the KeyManagers created by the configured KeyManagerFactory
|
KeyStore |
getKeyStore()
Get the keystore associated with the security domain
|
String |
getKeyStoreProvider() |
String |
getKeyStoreProviderArgument() |
String |
getKeyStoreType() |
String |
getKeyStoreURL() |
String[] |
getProtocols()
Returns the protocols that should be enabled on SSLSockets
|
String |
getSecurityDomain()
Get the security domain from which the security manager is from.
|
String |
getServerAlias()
Get the preferred server alias name
|
String |
getTrustManagerFactoryAlgorithm() |
String |
getTrustManagerFactoryProvider() |
TrustManager[] |
getTrustManagers()
Get the TrustManagers created by the configured TrustManagerFactory
|
KeyStore |
getTrustStore()
Get the truststore associated with the security domain.
|
String |
getTrustStoreProvider() |
String |
getTrustStoreProviderArgument() |
String |
getTrustStoreType() |
String |
getTrustStoreURL() |
boolean |
isClientAuth()
Get the client auth flag
|
void |
reloadKeyAndTrustStore()
Reload/initialize keystore and truststore using the attributes set in the security domain
|
void |
setAdditionalProperties(Properties properties) |
void |
setCipherSuites(String cipherSuites) |
void |
setClientAlias(String clientAlias) |
void |
setClientAuth(boolean clientAuth) |
void |
setKeyManagerFactoryAlgorithm(String keyManagerFactoryAlgorithm) |
void |
setKeyManagerFactoryProvider(String keyManagerFactoryProvider) |
void |
setKeyStorePassword(String keyStorePassword) |
void |
setKeyStoreProvider(String keyStoreProvider) |
void |
setKeyStoreProviderArgument(String keyStoreProviderArgument) |
void |
setKeyStoreType(String keyStoreType) |
void |
setKeyStoreURL(String keyStoreURL) |
void |
setProtocols(String protocols) |
void |
setServerAlias(String serverAlias) |
void |
setServiceAuthToken(String serviceAuthToken) |
void |
setTrustManagerFactoryAlgorithm(String trustManagerFactoryAlgorithm) |
void |
setTrustManagerFactoryProvider(String trustManagerFactoryProvider) |
void |
setTrustStorePassword(String trustStorePassword) |
void |
setTrustStoreProvider(String trustStoreProvider) |
void |
setTrustStoreProviderArgument(String trustStoreProviderArgument) |
void |
setTrustStoreType(String trustStoreType) |
void |
setTrustStoreURL(String trustStoreURL) |
public JBossJSSESecurityDomain(String securityDomainName)
public String getKeyStoreType()
public void setKeyStoreType(String keyStoreType)
public String getKeyStoreURL()
public void setKeyStoreURL(String keyStoreURL) throws IOException
IOException
public String getKeyStoreProvider()
public void setKeyStoreProvider(String keyStoreProvider)
public String getKeyManagerFactoryProvider()
public String getKeyStoreProviderArgument()
public void setKeyStoreProviderArgument(String keyStoreProviderArgument)
public void setKeyManagerFactoryProvider(String keyManagerFactoryProvider)
public String getKeyManagerFactoryAlgorithm()
public void setKeyManagerFactoryAlgorithm(String keyManagerFactoryAlgorithm)
public String getTrustStoreType()
public void setTrustStoreType(String trustStoreType)
public String getTrustStoreURL()
public void setTrustStoreURL(String trustStoreURL) throws IOException
IOException
public String getTrustStoreProvider()
public void setTrustStoreProvider(String trustStoreProvider)
public String getTrustStoreProviderArgument()
public void setTrustStoreProviderArgument(String trustStoreProviderArgument)
public String getTrustManagerFactoryProvider()
public void setTrustManagerFactoryProvider(String trustManagerFactoryProvider)
public String getTrustManagerFactoryAlgorithm()
public void setTrustManagerFactoryAlgorithm(String trustManagerFactoryAlgorithm)
public String getClientAlias()
JSSESecurityDomain
getClientAlias
in interface JSSESecurityDomain
public void setClientAlias(String clientAlias)
public String getServerAlias()
JSSESecurityDomain
getServerAlias
in interface JSSESecurityDomain
public void setServerAlias(String serverAlias)
public boolean isClientAuth()
JSSESecurityDomain
isClientAuth
in interface JSSESecurityDomain
public void setClientAuth(boolean clientAuth)
public KeyStore getKeyStore()
JSSESecurityDomain
getKeyStore
in interface JSSESecurityDomain
public KeyStore getTrustStore()
JSSESecurityDomain
getTrustStore
in interface JSSESecurityDomain
public void setKeyStorePassword(String keyStorePassword) throws Exception
Exception
public void setTrustStorePassword(String trustStorePassword) throws Exception
Exception
public void setServiceAuthToken(String serviceAuthToken) throws Exception
Exception
public KeyManager[] getKeyManagers() throws SecurityException
JSSESecurityDomain
getKeyManagers
in interface JSSESecurityDomain
SecurityException
public TrustManager[] getTrustManagers() throws SecurityException
JSSESecurityDomain
getTrustManagers
in interface JSSESecurityDomain
SecurityException
public String getSecurityDomain()
BaseSecurityManager
getSecurityDomain
in interface BaseSecurityManager
public Key getKey(String alias, String serviceAuthToken) throws Exception
JSSESecurityDomain
getKey
in interface JSSESecurityDomain
alias
- - the alias corresponding to the key to be retrieved.serviceAuthToken
- - the authentication token that establishes whether the calling
service has the permission to retrieve the key. If no authentication token provided,
or invalid authentication token is provided, the method will throw SecurityExceptionSecurityException
- for missing or invalid serviceAuthToken.IllegalStateException
- if sensitive information is requested, but no service
authorization token is configured on security domain.Exception
KeyStore.getKey(String, char[])
public Certificate getCertificate(String alias) throws Exception
JSSESecurityDomain
getCertificate
in interface JSSESecurityDomain
alias
- - the alias corresponding to the certificate to be retrieved.Exception
KeyStore.getKey(String, char[])
public void reloadKeyAndTrustStore() throws Exception
JSSESecurityDomain
reloadKeyAndTrustStore
in interface JSSESecurityDomain
Exception
- if an error occurspublic String[] getCipherSuites()
JSSESecurityDomain
getCipherSuites
in interface JSSESecurityDomain
public void setCipherSuites(String cipherSuites)
public String[] getProtocols()
JSSESecurityDomain
getProtocols
in interface JSSESecurityDomain
public void setProtocols(String protocols)
public Properties getAdditionalProperties()
JSSESecurityDomain
getAdditionalProperties
in interface JSSESecurityDomain
public void setAdditionalProperties(Properties properties)
Copyright © 2018 JBoss by Red Hat. All rights reserved.