public interface JSSESecurityDomain extends BaseSecurityManager
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.
|
KeyManager[] |
getKeyManagers()
Get the KeyManagers created by the configured KeyManagerFactory
|
KeyStore |
getKeyStore()
Get the keystore associated with the security domain
|
String[] |
getProtocols()
Returns the protocols that should be enabled on SSLSockets
|
String |
getServerAlias()
Get the preferred server alias name
|
TrustManager[] |
getTrustManagers()
Get the TrustManagers created by the configured TrustManagerFactory
|
KeyStore |
getTrustStore()
Get the truststore associated with the security domain.
|
boolean |
isClientAuth()
Get the client auth flag
|
void |
reloadKeyAndTrustStore()
Reload/initialize keystore and truststore using the attributes set in the security domain
|
getSecurityDomain
KeyStore getKeyStore() throws SecurityException
SecurityException
KeyManager[] getKeyManagers() throws SecurityException
SecurityException
KeyStore getTrustStore() throws SecurityException
SecurityException
TrustManager[] getTrustManagers() throws SecurityException
SecurityException
void reloadKeyAndTrustStore() throws Exception
Exception
- if an error occursString getServerAlias()
String getClientAlias()
boolean isClientAuth()
Key getKey(String alias, String serviceAuthToken) throws Exception
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[])
Certificate getCertificate(String alias) throws Exception
alias
- - the alias corresponding to the certificate to be retrieved.Exception
KeyStore.getKey(String, char[])
String[] getCipherSuites()
String[] getProtocols()
Properties getAdditionalProperties()
Copyright © 2021 JBoss by Red Hat. All rights reserved.