|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.security.plugins.JaasSecurityManager (src)
org.jboss.security.plugins.JaasSecurityDomain
The JaasSecurityDomain is an extension of JaasSecurityManager that addes the notion of a KeyStore, and JSSE KeyManagerFactory and TrustManagerFactory for supporting SSL and other cryptographic use cases. Attributes:
Nested Class Summary |
Nested classes inherited from class org.jboss.security.plugins.JaasSecurityManager (src) |
JaasSecurityManager.DomainInfo (src) |
Field Summary |
Fields inherited from class org.jboss.security.plugins.JaasSecurityManager (src) |
log, trace |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
JaasSecurityDomain()
Creates a default JaasSecurityDomain for with a securityDomain name of 'other'. |
|
JaasSecurityDomain(java.lang.String securityDomain)
Creates a JaasSecurityDomain for with a securityDomain name of that given by the 'securityDomain' argument. |
|
JaasSecurityDomain(java.lang.String securityDomain,
javax.security.auth.callback.CallbackHandler handler)
Creates a JaasSecurityDomain for with a securityDomain name of that given by the 'securityDomain' argument. |
Method Summary | |
byte[] |
decode(byte[] secret)
Decrypt the secret using the cipherKey. |
byte[] |
decode64(java.lang.String secret)
Decrypt the base64 encoded secret using the cipherKey. |
byte[] |
encode(byte[] secret)
Encrypt the secret using the cipherKey. |
java.lang.String |
encode64(byte[] secret)
Encrypt the secret using the cipherKey and return a base64 encoding. |
java.lang.String |
getCipherAlgorithm()
|
javax.net.ssl.KeyManagerFactory |
getKeyManagerFactory()
Get the KeyManagerFactory associated with the security domain |
java.security.KeyStore |
getKeyStore()
Get the keystore associated with the security domain |
java.lang.String |
getKeyStoreType()
KeyStore implementation type being used. |
java.lang.String |
getKeyStoreURL()
Get the KeyStore database URL string. |
ObjectName (src) |
getManagerServiceName()
The JMX object name string of the security manager service. |
java.lang.String |
getName()
Use the short class name as the default for the service name. |
javax.net.ssl.TrustManagerFactory |
getTrustManagerFactory()
Get the TrustManagerFactory associated with the security domain |
java.security.KeyStore |
getTrustStore()
Get the truststore associated with the security domain. |
java.lang.String |
getTrustStoreType()
Get the type of the trust store |
java.lang.String |
getTrustStoreURL()
Get the trust store database URL string. |
void |
reloadKeyAndTrustStore()
Reload the key- and truststore |
void |
setCipherAlgorithm(java.lang.String cipherAlgorithm)
|
void |
setIterationCount(int iterationCount)
Set the iteration count used with PBE based on the keystore password. |
void |
setKeyStorePass(java.lang.String password)
Set the credential string for the KeyStore. |
void |
setKeyStoreType(java.lang.String type)
Set the type of KeyStore implementation to use. |
void |
setKeyStoreURL(java.lang.String storeURL)
Set the KeyStore database URL string. |
void |
setManagerServiceName(ObjectName (src) managerServiceName)
Set the JMX object name string of the security manager service. |
void |
setSalt(java.lang.String salt)
Set the salt used with PBE based on the keystore password. |
void |
setTrustStorePass(java.lang.String password)
Set the credential string for the trust store. |
void |
setTrustStoreType(java.lang.String type)
Set the type of the trust store |
void |
setTrustStoreURL(java.lang.String storeURL)
Set the trust store database URL string. |
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.security.plugins.JaasSecurityManager (src) |
doesRoleGroupHaveRole, doesUserHaveRole, doesUserHaveRole, flushCache, getActiveSubject, getPrincipal, getSecurityDomain, getUserRoles, isValid, isValid, setCachePolicy |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.security.AuthenticationManager (src) |
getActiveSubject, getSecurityDomain, isValid, isValid |
Methods inherited from interface org.jboss.security.RealmMapping (src) |
doesUserHaveRole, getPrincipal, getUserRoles |
Methods inherited from interface org.jboss.system.ServiceMBean (src) |
getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Constructor Detail |
public JaasSecurityDomain()
public JaasSecurityDomain(java.lang.String securityDomain)
securityDomain
- , the name of the security domainpublic JaasSecurityDomain(java.lang.String securityDomain, javax.security.auth.callback.CallbackHandler handler)
securityDomain
- , the name of the security domainhandler
- , the CallbackHandler to use to obtain login module infoMethod Detail |
public java.security.KeyStore getKeyStore() throws java.lang.SecurityException
SecurityDomain (src)
getKeyStore
in interface SecurityDomain (src)
java.lang.SecurityException
public javax.net.ssl.KeyManagerFactory getKeyManagerFactory() throws java.lang.SecurityException
SecurityDomain (src)
getKeyManagerFactory
in interface SecurityDomain (src)
java.lang.SecurityException
public java.security.KeyStore getTrustStore() throws java.lang.SecurityException
SecurityDomain (src)
getTrustStore
in interface SecurityDomain (src)
java.lang.SecurityException
public javax.net.ssl.TrustManagerFactory getTrustManagerFactory() throws java.lang.SecurityException
SecurityDomain (src)
getTrustManagerFactory
in interface SecurityDomain (src)
java.lang.SecurityException
public ObjectName (src) getManagerServiceName()
getManagerServiceName
in interface JaasSecurityDomainMBean (src)
public void setManagerServiceName(ObjectName (src) managerServiceName)
setManagerServiceName
in interface JaasSecurityDomainMBean (src)
public java.lang.String getKeyStoreType()
JaasSecurityDomainMBean (src)
getKeyStoreType
in interface JaasSecurityDomainMBean (src)
public void setKeyStoreType(java.lang.String type)
JaasSecurityDomainMBean (src)
setKeyStoreType
in interface JaasSecurityDomainMBean (src)
public java.lang.String getKeyStoreURL()
JaasSecurityDomainMBean (src)
getKeyStoreURL
in interface JaasSecurityDomainMBean (src)
public void setKeyStoreURL(java.lang.String storeURL) throws java.io.IOException
JaasSecurityDomainMBean (src)
setKeyStoreURL
in interface JaasSecurityDomainMBean (src)
java.io.IOException
public void setKeyStorePass(java.lang.String password)
JaasSecurityDomainMBean (src)
setKeyStorePass
in interface JaasSecurityDomainMBean (src)
public java.lang.String getTrustStoreType()
JaasSecurityDomainMBean (src)
getTrustStoreType
in interface JaasSecurityDomainMBean (src)
public void setTrustStoreType(java.lang.String type)
JaasSecurityDomainMBean (src)
setTrustStoreType
in interface JaasSecurityDomainMBean (src)
type
- - the trust store implementation typepublic void setTrustStorePass(java.lang.String password)
JaasSecurityDomainMBean (src)
setTrustStorePass
in interface JaasSecurityDomainMBean (src)
public java.lang.String getTrustStoreURL()
JaasSecurityDomainMBean (src)
getTrustStoreURL
in interface JaasSecurityDomainMBean (src)
public void setTrustStoreURL(java.lang.String storeURL) throws java.io.IOException
JaasSecurityDomainMBean (src)
setTrustStoreURL
in interface JaasSecurityDomainMBean (src)
java.io.IOException
public void setSalt(java.lang.String salt)
JaasSecurityDomainMBean (src)
setSalt
in interface JaasSecurityDomainMBean (src)
salt
- - an 8 char randomization stringpublic void setIterationCount(int iterationCount)
JaasSecurityDomainMBean (src)
setIterationCount
in interface JaasSecurityDomainMBean (src)
iterationCount
- - an iteration count randomization valuepublic java.lang.String getCipherAlgorithm()
public void setCipherAlgorithm(java.lang.String cipherAlgorithm)
public java.lang.String getName()
ServiceMBeanSupport (src)
getName
in interface ServiceMBean (src)
getName
in class ServiceMBeanSupport (src)
public byte[] encode(byte[] secret) throws java.lang.Exception
encode
in interface JaasSecurityDomainMBean (src)
secret
- - the plaintext secret to encrypt
java.lang.Exception
public byte[] decode(byte[] secret) throws java.lang.Exception
decode
in interface JaasSecurityDomainMBean (src)
secret
- - the encrypted secret to decrypt.
java.lang.Exception
public java.lang.String encode64(byte[] secret) throws java.lang.Exception
encode64
in interface JaasSecurityDomainMBean (src)
secret
- - the plaintext secret to encrypt
java.lang.Exception
public byte[] decode64(java.lang.String secret) throws java.lang.Exception
decode64
in interface JaasSecurityDomainMBean (src)
secret
- - the base64 encoded encrypted secret to decrypt.
java.lang.Exception
public void reloadKeyAndTrustStore() throws java.lang.Exception
reloadKeyAndTrustStore
in interface JaasSecurityDomainMBean (src)
java.lang.Exception
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService()
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |