org.jboss.security.plugins
Interface JaasSecurityDomainMBean

All Superinterfaces:
Service (src) , ServiceMBean (src)
All Known Implementing Classes:
JaasSecurityDomain (src)

public interface JaasSecurityDomainMBean
extends ServiceMBean (src)

The JaasSecurityDomainMBean adds support for KeyStore management.


Field Summary
 
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
 
Method Summary
 byte[] decode(byte[] secret)
          Decode a secret using the keystore password and PBEwithMD5andDES algo
 byte[] decode64(java.lang.String secret)
          Decode a secret using the keystore password and PBEwithMD5andDES algo
 byte[] encode(byte[] secret)
          Encode a secret using the keystore password and PBEwithMD5andDES algo
 java.lang.String encode64(byte[] secret)
          Encode a secret using the keystore password and PBEwithMD5andDES algo
 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 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 setIterationCount(int count)
          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)  jmxName)
          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.
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Method Detail

getKeyStoreType

public java.lang.String getKeyStoreType()
KeyStore implementation type being used.

Returns:
the KeyStore implementation type being used.

setKeyStoreType

public void setKeyStoreType(java.lang.String type)
Set the type of KeyStore implementation to use. This is passed to the KeyStore.getInstance() factory method.


getKeyStoreURL

public java.lang.String getKeyStoreURL()
Get the KeyStore database URL string.


setKeyStoreURL

public void setKeyStoreURL(java.lang.String storeURL)
                    throws java.io.IOException
Set the KeyStore database URL string. This is used to obtain an InputStream to initialize the KeyStore.

Throws:
java.io.IOException

setKeyStorePass

public void setKeyStorePass(java.lang.String password)
Set the credential string for the KeyStore.


getTrustStoreType

public java.lang.String getTrustStoreType()
Get the type of the trust store

Returns:
the type of the trust store

setTrustStoreType

public void setTrustStoreType(java.lang.String type)
Set the type of the trust store

Parameters:
type - - the trust store implementation type

setTrustStorePass

public void setTrustStorePass(java.lang.String password)
Set the credential string for the trust store.


getTrustStoreURL

public java.lang.String getTrustStoreURL()
Get the trust store database URL string.


setTrustStoreURL

public void setTrustStoreURL(java.lang.String storeURL)
                      throws java.io.IOException
Set the trust store database URL string. This is used to obtain an InputStream to initialize the trust store.

Throws:
java.io.IOException

reloadKeyAndTrustStore

public void reloadKeyAndTrustStore()
                            throws java.lang.Exception
Reload the key- and truststore

Throws:
java.lang.Exception

getManagerServiceName

public ObjectName (src)  getManagerServiceName()
The JMX object name string of the security manager service.

Returns:
The JMX object name string of the security manager service.

setManagerServiceName

public void setManagerServiceName(ObjectName (src)  jmxName)
Set the JMX object name string of the security manager service.


setSalt

public void setSalt(java.lang.String salt)
Set the salt used with PBE based on the keystore password.

Parameters:
salt - - an 8 char randomization string

setIterationCount

public void setIterationCount(int count)
Set the iteration count used with PBE based on the keystore password.

Parameters:
count - - an iteration count randomization value

encode

public byte[] encode(byte[] secret)
              throws java.lang.Exception
Encode a secret using the keystore password and PBEwithMD5andDES algo

Parameters:
secret - - the byte sequence to encrypt
Returns:
the encrypted byte sequence
Throws:
java.lang.Exception

decode

public byte[] decode(byte[] secret)
              throws java.lang.Exception
Decode a secret using the keystore password and PBEwithMD5andDES algo

Parameters:
secret - - the byte sequence to decrypt
Returns:
the decrypted byte sequence
Throws:
java.lang.Exception

encode64

public java.lang.String encode64(byte[] secret)
                          throws java.lang.Exception
Encode a secret using the keystore password and PBEwithMD5andDES algo

Parameters:
secret - - the byte sequence to encrypt as a base64 string using the Util.tob64() function
Returns:
the encrypted byte sequence
Throws:
java.lang.Exception

decode64

public byte[] decode64(java.lang.String secret)
                throws java.lang.Exception
Decode a secret using the keystore password and PBEwithMD5andDES algo

Parameters:
secret - - the Util.tob64 string represention to decrypt
Returns:
the decrypted byte sequence
Throws:
java.lang.Exception