Skip navigation links

Oracle Fusion Middleware MBeans Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14651-05


oracle.security.jps.mas.mgmt.jmx.keystore
Class JpsKeyStoreBeanImpl

java.lang.Object
  extended by oracle.as.jmx.framework.util.MessageLocalizationSupport
      extended by oracle.as.jmx.framework.util.RuntimeMBeanSupport
          extended by oracle.as.jmx.framework.util.BasicConfigMBeanSupport
              extended by oracle.as.jmx.framework.util.ConfigMBeanSupport
                  extended by oracle.security.jps.mas.mgmt.jmx.keystore.JpsKeyStoreBeanImpl

All Implemented Interfaces:
javax.management.MBeanRegistration, oracle.as.jmx.framework.lifecycle.Persistable, oracle.as.jmx.framework.lifecycle.SessionLifeCycle, oracle.as.jmx.framework.MessageLocalization, JpsKeyStoreMXBean

public class JpsKeyStoreBeanImpl
extends oracle.as.jmx.framework.util.ConfigMBeanSupport
implements JpsKeyStoreMXBean

Field Summary
static java.lang.String META_INF
           

 

Fields inherited from interface oracle.security.jps.mas.mgmt.jmx.keystore.JpsKeyStoreMXBean
RBN

 

Constructor Summary
JpsKeyStoreBeanImpl(oracle.security.jps.service.keystore.KeyStoreService ks)
          This constructor is specifically used for decoupling dependency on jps-config.xml, It allows creation of MBean directly with KeyStoreService instance
JpsKeyStoreBeanImpl(java.util.Properties props)
          Create an instance of KeyStoreService MBean which is associated to a KeyStore service configured in 'context' specified by properties

 

Method Summary
 void changeKeyPassword(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String alias, char[] currentKeyPassword, char[] newKeyPassword)
          Changes the key password for a secret key or key pair entry
 void changeKeyStorePassword(java.lang.String stripeName, java.lang.String keystoreName, char[] currentKeyStorePassword, char[] newKeyStorePassword)
          Changes the password of a password protected keystore.
 void createDemoCASignedCertificate(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String DN, PortableMap keyProps, java.lang.String alias, char[] keyPassword)
          Generates a key pair and wraps it in a demo CA signed certificate
 void createKeyStore(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, boolean isPermissionProtected)
          This method creates a new key store.
 void deleteKeyStore(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword)
          This method deletes an existing key store
 void deleteKeyStoreEntry(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String alias, char[] keyPassword)
          Deletes a given entry from the key store
 java.lang.String exportCertificateRequest(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String alias, char[] keyPassword)
          Generates a PKCS#10 certificate request and exports it from a keystore
 java.lang.String exportCertificates(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String alias, char[] keyPassword, java.lang.String keystoreEntryType)
          Exports the certificate, certificate chain or trusted certificate in base64 format
 byte[] exportKeyStore(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String keyAliases, java.lang.String keyPasswords, java.lang.String keystoreType)
          Exports the keystore into a byte array
 void generateSecretKey(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, PortableMap keyProps, java.lang.String alias, char[] keyPassword)
          Generates a secret key
 java.security.cert.X509Certificate[] getCertificates(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String alias, char[] keyPassword)
          Returns the certificate, certificate chain or trusted certificate for a given alias
 boolean getFarmKeyStoreConfigured()
          This method returns true if KeyStoreService is configured.
 PortableMap getKeyStoreProperties(java.lang.String stripeName, java.lang.String keystoreName)
          helper method for EM to list a given keystore properties without specifying its password
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          This method returns the configured properties for this service instance
 java.util.ArrayList<java.lang.String> getSecretKeyProperties(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String alias, char[] keyPassword)
          Returns the properties of the secret key, like key algorithm
 int[] getSupportedKeySize(java.lang.String algorithm)
          Helper method for EM to list the supported key sizes for a given key algorithm
 void importCertificates(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String alias, char[] keyPassword, java.lang.String keystoreEntryType, java.lang.String keystoreEntry)
          Imports a certificate, certificate chain or trusted certificate into a keystore
 void importKeyStore(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String keyAliases, java.lang.String keyPasswords, java.lang.String keystoreType, byte[] keystore, boolean isPermissionProtected)
          imports a keystore into keystore service
 boolean isPasswordValid(char[] password)
          Helper method for EM to check if a given password is valid
 java.lang.String[] listAliases(java.lang.String stripeName, java.lang.String keystoreName, char[] keystorePassword, java.lang.String keystoreEntryType)
          Lists the aliases present in a given key store
 java.util.ArrayList<java.util.ArrayList<java.lang.String>> listExpiringCertificates(int numberOfDaysFromExpiration, boolean autoRenew)
          Lists the certificates that are going to expire in the next "n" days.
 java.lang.String[] listKeyStores(java.lang.String stripeName)
          This method lists the keystores present within a given application stripe in the format <keystore>.
 void load()
           
 void persist()
           
 void preDeregister()
          Pre MBean unregistration callback
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
          Pre MBean registration callback default implementation is no-op
 void refresh()
           
 void rollOverMasterKey()
          Performs a roll-over of the encryption key as a routine exercise, or in case of key compromise
static void setCanonicalPath(oracle.security.jps.service.keystore.KeyStoreService ks, java.lang.String path)
           
 void setEventBroadcaster(oracle.as.jmx.framework.services.EventBroadcaster eventBroadcaster)
          Used by the dependency engine to provide access to the Event Service.The

Inject annotation is used to mark a specific method as a dependency point that needs to be resolved by the framework

 java.lang.String toString()
           

 

Methods inherited from class oracle.as.jmx.framework.util.ConfigMBeanSupport
checkPoint, save, setConfigURL, setDataSource, validate

 

Methods inherited from class oracle.as.jmx.framework.util.BasicConfigMBeanSupport
joinSession, postCommitSession, preCommitSession, rollbackSession

 

Methods inherited from class oracle.as.jmx.framework.util.RuntimeMBeanSupport
postDeregister, postRegister

 

Methods inherited from class oracle.as.jmx.framework.util.MessageLocalizationSupport
getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, setJMXSupport

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

META_INF

public static final java.lang.String META_INF
See Also:
Constant Field Values

Constructor Detail

JpsKeyStoreBeanImpl

public JpsKeyStoreBeanImpl(oracle.security.jps.service.keystore.KeyStoreService ks)
This constructor is specifically used for decoupling dependency on jps-config.xml, It allows creation of MBean directly with KeyStoreService instance
Parameters:
ks - The KeyStoreService to be associated with this MBean.
Throws:
java.lang.IllegalArgumentException - If ServiceInstance passed is a null

JpsKeyStoreBeanImpl

public JpsKeyStoreBeanImpl(java.util.Properties props)
                    throws oracle.as.jmx.framework.exceptions.ManagementException,
                           oracle.security.jps.JpsException
Create an instance of KeyStoreService MBean which is associated to a KeyStore service configured in 'context' specified by properties
Parameters:
props - properties which capture context information JpsJmxConstants "JPS_JMX_BEAN_SECURITY_CONTEXT" defines key for for the 'context'
Throws:
ManagementException, - JpsException
oracle.as.jmx.framework.exceptions.ManagementException
oracle.security.jps.JpsException

Method Detail

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()
Description copied from interface: JpsKeyStoreMXBean
This method returns the configured properties for this service instance
Specified by:
getProperties in interface JpsKeyStoreMXBean
Returns:
The properties

getFarmKeyStoreConfigured

public boolean getFarmKeyStoreConfigured()
Description copied from interface: JpsKeyStoreMXBean
This method returns true if KeyStoreService is configured. It returns false if it is legacy keystore service without key management functionality
Specified by:
getFarmKeyStoreConfigured in interface JpsKeyStoreMXBean
Returns:

createKeyStore

public void createKeyStore(java.lang.String stripeName,
                           java.lang.String keystoreName,
                           char[] keystorePassword,
                           boolean isPermissionProtected)
                    throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
This method creates a new key store.
Specified by:
createKeyStore in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe where keystore is created
keystoreName - name of the keystore created
keystorePassword - password of the key store. This is used only if the parameter isPermissionProtected is set to false.
isPermissionProtected - true if the keystore is permission protected only. false, if the keystore is protected by both permission and password
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

deleteKeyStore

public void deleteKeyStore(java.lang.String stripeName,
                           java.lang.String keystoreName,
                           char[] keystorePassword)
                    throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
This method deletes an existing key store
Specified by:
deleteKeyStore in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe where keystore is deleted
keystoreName - name of the keystore being deleted
keystorePassword - password of the keystore being deleted. This parameter is ignored if the keystore is permission protected only.
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

listKeyStores

public java.lang.String[] listKeyStores(java.lang.String stripeName)
                                 throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
This method lists the keystores present within a given application stripe in the format <keystore>. If a wild card "*" is used in the stripe name, all keystores present under all application stripes are returned in the format <stripe>/<keystore>
Specified by:
listKeyStores in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe whose keystores need to be listed. Can be a wild card "*"
Returns:
An array of keystore names if stripe name is explicitly provided. If a wild card is used, it lists both stripe name and keystore name in the format <stripe>/<keystore>
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

changeKeyStorePassword

public void changeKeyStorePassword(java.lang.String stripeName,
                                   java.lang.String keystoreName,
                                   char[] currentKeyStorePassword,
                                   char[] newKeyStorePassword)
                            throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Changes the password of a password protected keystore. If the keystore is only permission protected, this is a no-op.
Specified by:
changeKeyStorePassword in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe of the keystore whose password is changed
keystoreName - name of the keystore
currentKeyStorePassword - current keystore password
newKeyStorePassword - new keystore password
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

exportKeyStore

public byte[] exportKeyStore(java.lang.String stripeName,
                             java.lang.String keystoreName,
                             char[] keystorePassword,
                             java.lang.String keyAliases,
                             java.lang.String keyPasswords,
                             java.lang.String keystoreType)
                      throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Exports the keystore into a byte array
Specified by:
exportKeyStore in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe of the keystore being exported
keystoreName - name of the keystore
keystorePassword - keystore password
keyAliases - comma separated list of aliases to be exported
keyPasswords - comma separated passwords corresponding to the aliases
keystoreType - format in which keystore needs to be exported. The supported types are JKS and JCEKS
Returns:
byte array representing the exported keystore
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

importKeyStore

public void importKeyStore(java.lang.String stripeName,
                           java.lang.String keystoreName,
                           char[] keystorePassword,
                           java.lang.String keyAliases,
                           java.lang.String keyPasswords,
                           java.lang.String keystoreType,
                           byte[] keystore,
                           boolean isPermissionProtected)
                    throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
imports a keystore into keystore service
Specified by:
importKeyStore in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe of the keystore to which import should happen
keystoreName - name of the keystore
keystorePassword - password of the keystore being imported. Also represents the password of the imported keystore in KSS
keyAliases - comma separated list of aliases from the keystore being imported
keyPasswords - comma separated list of passwords corresponding to key aliases
keystoreType - type of keystore being imported, supported values are JKS and JCEKS
keystore - byte array representing the keystore being imported
isPermissionProtected - if the keystore being imported to, is permission protected only
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

createDemoCASignedCertificate

public void createDemoCASignedCertificate(java.lang.String stripeName,
                                          java.lang.String keystoreName,
                                          char[] keystorePassword,
                                          java.lang.String DN,
                                          PortableMap keyProps,
                                          java.lang.String alias,
                                          char[] keyPassword)
                                   throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Generates a key pair and wraps it in a demo CA signed certificate
Specified by:
createDemoCASignedCertificate in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe where key pair is generated
keystoreName - name of the keystore
keystorePassword - password of the keystore. if it is permission protected only, the parameter is ignored
DN - distinguished name of the certificate
keyProps - properties representing information about the key pair, like key size and algorithm
alias - alias of the key pair
keyPassword - password of the key pair. this parameter is unused for keystore that is permission protected only
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

generateSecretKey

public void generateSecretKey(java.lang.String stripeName,
                              java.lang.String keystoreName,
                              char[] keystorePassword,
                              PortableMap keyProps,
                              java.lang.String alias,
                              char[] keyPassword)
                       throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Generates a secret key
Specified by:
generateSecretKey in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe where secret key is to be generated
keystoreName - name of the keystore
keystorePassword - keystore password, if the keystore is also password protected. The parameter is ignored if it is only permission protected
keyProps - properties representing information about the secret key, like key size and algorithm
alias - alias of the secret key
keyPassword - password of the key
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

changeKeyPassword

public void changeKeyPassword(java.lang.String stripeName,
                              java.lang.String keystoreName,
                              char[] keystorePassword,
                              java.lang.String alias,
                              char[] currentKeyPassword,
                              char[] newKeyPassword)
                       throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Changes the key password for a secret key or key pair entry
Specified by:
changeKeyPassword in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - keystore name
keystorePassword - password of the keystore, ignored for only permission protected keystores
alias - alias of the key entry
currentKeyPassword - current key password
newKeyPassword - new key password
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

listAliases

public java.lang.String[] listAliases(java.lang.String stripeName,
                                      java.lang.String keystoreName,
                                      char[] keystorePassword,
                                      java.lang.String keystoreEntryType)
                               throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Lists the aliases present in a given key store
Specified by:
listAliases in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - keystore name
keystorePassword - password of the keystore
keystoreEntryType - type of entry to be listed. Valid values are "Certificate", "TrustedCertificate", "SecretKey" or "*" for all types
Returns:
An array of alias values
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

getCertificates

public java.security.cert.X509Certificate[] getCertificates(java.lang.String stripeName,
                                                            java.lang.String keystoreName,
                                                            char[] keystorePassword,
                                                            java.lang.String alias,
                                                            char[] keyPassword)
                                                     throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Returns the certificate, certificate chain or trusted certificate for a given alias
Specified by:
getCertificates in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - name of the keystore
keystorePassword - password of the key store
alias - alias whose certificate needs to be exported
keyPassword - this parameter is not used
Returns:
returns an array of certificates
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

getSecretKeyProperties

public java.util.ArrayList<java.lang.String> getSecretKeyProperties(java.lang.String stripeName,
                                                                    java.lang.String keystoreName,
                                                                    char[] keystorePassword,
                                                                    java.lang.String alias,
                                                                    char[] keyPassword)
                                                             throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Returns the properties of the secret key, like key algorithm
Specified by:
getSecretKeyProperties in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - name of the keystore
keystorePassword - keystore password, ignored for keystores that are only permission protected
alias - alias of the secret key entry
keyPassword - password of the scret key
Returns:
a list of secret key properties, currently includes algorithm name
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

exportCertificateRequest

public java.lang.String exportCertificateRequest(java.lang.String stripeName,
                                                 java.lang.String keystoreName,
                                                 char[] keystorePassword,
                                                 java.lang.String alias,
                                                 char[] keyPassword)
                                          throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Generates a PKCS#10 certificate request and exports it from a keystore
Specified by:
exportCertificateRequest in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - name of the keystore
keystorePassword - password of the key store
alias - alias of the key pair entry which should be used for certificate request generation
keyPassword - password of the key pair
Returns:
a string representing the Base64 encoded certificate request
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

exportCertificates

public java.lang.String exportCertificates(java.lang.String stripeName,
                                           java.lang.String keystoreName,
                                           char[] keystorePassword,
                                           java.lang.String alias,
                                           char[] keyPassword,
                                           java.lang.String keystoreEntryType)
                                    throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Exports the certificate, certificate chain or trusted certificate in base64 format
Specified by:
exportCertificates in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - name of the keystore
keystorePassword - keystore password
alias - alias of the certificate entry to be exported
keyPassword - this parameter is not used
keystoreEntryType - type of entry to be exported. valid values are "Certificate", "TrustedCertificate" or "PKCS7"
Returns:
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

importCertificates

public void importCertificates(java.lang.String stripeName,
                               java.lang.String keystoreName,
                               char[] keystorePassword,
                               java.lang.String alias,
                               char[] keyPassword,
                               java.lang.String keystoreEntryType,
                               java.lang.String keystoreEntry)
                        throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Imports a certificate, certificate chain or trusted certificate into a keystore
Specified by:
importCertificates in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - name of the keystore
keystorePassword - keystore password
alias - alias where the entry should be imported
keyPassword - password of the key pair if the entry being exported is a certificate or certificate chain
keystoreEntryType - type of entry - valid values are "Certificate", "TrustedCertificate" or "PKCS7".
keystoreEntry - Base64 encoded entry to be imported
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

deleteKeyStoreEntry

public void deleteKeyStoreEntry(java.lang.String stripeName,
                                java.lang.String keystoreName,
                                char[] keystorePassword,
                                java.lang.String alias,
                                char[] keyPassword)
                         throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Deletes a given entry from the key store
Specified by:
deleteKeyStoreEntry in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - name of the keystore
keystorePassword - keystore password; ignored for keystores that are only permission protected
alias - alias of the entry to be deleted
keyPassword - password of the secret key or key pair to be deleted.
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

rollOverMasterKey

public void rollOverMasterKey()
                       throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Performs a roll-over of the encryption key as a routine exercise, or in case of key compromise
Specified by:
rollOverMasterKey in interface JpsKeyStoreMXBean
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

listExpiringCertificates

public java.util.ArrayList<java.util.ArrayList<java.lang.String>> listExpiringCertificates(int numberOfDaysFromExpiration,
                                                                                           boolean autoRenew)
                                                                                    throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Lists the certificates that are going to expire in the next "n" days.
Specified by:
listExpiringCertificates in interface JpsKeyStoreMXBean
Parameters:
numberOfDaysFromExpiration - Number of days within which certificates are going to expire
autoRenew - true if expiring certificates should be auto-renewed. false, if they should only be listed.
Returns:
a list of certificates (with stripe name, keystore name, alias and expiration date) that will expire within the next "n" days
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

getKeyStoreProperties

public PortableMap getKeyStoreProperties(java.lang.String stripeName,
                                         java.lang.String keystoreName)
                                  throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
helper method for EM to list a given keystore properties without specifying its password
Specified by:
getKeyStoreProperties in interface JpsKeyStoreMXBean
Parameters:
stripeName - application stripe
keystoreName - keystore name
Returns:
properties of the keystore like if it is permission protected, its last modification time, whether it is hsm protected
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

getSupportedKeySize

public int[] getSupportedKeySize(java.lang.String algorithm)
                          throws oracle.as.jmx.framework.exceptions.ManagementException
Description copied from interface: JpsKeyStoreMXBean
Helper method for EM to list the supported key sizes for a given key algorithm
Specified by:
getSupportedKeySize in interface JpsKeyStoreMXBean
Parameters:
algorithm - key algorithm
Returns:
supported key sizes
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

isPasswordValid

public boolean isPasswordValid(char[] password)
Description copied from interface: JpsKeyStoreMXBean
Helper method for EM to check if a given password is valid
Specified by:
isPasswordValid in interface JpsKeyStoreMXBean
Parameters:
password - password to be checked - null or empty strings are not allowed
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

load

public void load()
          throws java.io.IOException
Specified by:
load in interface oracle.as.jmx.framework.lifecycle.Persistable
Specified by:
load in class oracle.as.jmx.framework.util.ConfigMBeanSupport
Throws:
java.io.IOException

persist

public void persist()
             throws oracle.as.jmx.framework.exceptions.ManagementException
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

setEventBroadcaster

@Inject
public void setEventBroadcaster(oracle.as.jmx.framework.services.EventBroadcaster eventBroadcaster)
Used by the dependency engine to provide access to the Event Service.The

Inject annotation is used to mark a specific method as a dependency point that needs to be resolved by the framework

Overrides:
setEventBroadcaster in class oracle.as.jmx.framework.util.RuntimeMBeanSupport

setCanonicalPath

public static void setCanonicalPath(oracle.security.jps.service.keystore.KeyStoreService ks,
                                    java.lang.String path)
                             throws oracle.as.jmx.framework.exceptions.ManagementException
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

refresh

public void refresh()
             throws oracle.as.jmx.framework.exceptions.ManagementException
Throws:
oracle.as.jmx.framework.exceptions.ManagementException

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
Pre MBean registration callback default implementation is no-op
Specified by:
preRegister in interface javax.management.MBeanRegistration
Overrides:
preRegister in class oracle.as.jmx.framework.util.ConfigMBeanSupport
Throws:
java.lang.Exception

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Pre MBean unregistration callback
Specified by:
preDeregister in interface javax.management.MBeanRegistration
Overrides:
preDeregister in class oracle.as.jmx.framework.util.RuntimeMBeanSupport
Throws:
java.lang.Exception

Skip navigation links

Oracle Fusion Middleware MBeans Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14651-05


Copyright © 2011, Oracle. All rights reserved.