Skip navigation links

Oracle Communications Service Broker Configuration and Runtime MBean Java API Referencee
6.1

E38079-01


oracle.axia.api.management.credentialstore
Class AbstractCredentialStoreMBean

java.lang.Object
  extended by oracle.axia.api.management.credentialstore.AbstractCredentialStoreMBean

All Implemented Interfaces:
CredentialStoreMBean

public abstract class AbstractCredentialStoreMBean
extends Object
implements CredentialStoreMBean

Abstract implementation of the credential store mbean.

Author:
Copyright (c) 2010 by Oracle Corp. All Rights Reserved.

Constructor Summary
AbstractCredentialStoreMBean(ObjectName objectName, oracle.axia.api.credentialstore.CredentialWriter credentialWriter, oracle.axia.api.credentialstore.CredentialStoreManager credentialStoreManager)
          Creates the instance.

 

Method Summary
 void clear()
          Removes all entries.
 boolean containsKey(String key)
          Returns true if the key exists in the credential store.
 void deleteKey(String key)
          Deletes a key.
protected  oracle.axia.api.credentialstore.CredentialStoreManager getCredentialStoreManager()
           
 ObjectName getObjectName()
          Returns the object name used for this mbean implementation instance.
protected  void save(String... keys)
          Saves the content of the credential store inside the bundle.
 void setKeystore(String key, String password, String urlPath)
          Stores a KeyStore for the given key.
 void setPassword(String key, String password, boolean oneWay)
          Stores a password for the given key, using either a one-way or two-way encryption.
 boolean validatePassword(String key, String password)
          Validates a password against a password stored for the specified key.

 

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

 

Constructor Detail

AbstractCredentialStoreMBean

public AbstractCredentialStoreMBean(ObjectName objectName,
                                    oracle.axia.api.credentialstore.CredentialWriter credentialWriter,
                                    oracle.axia.api.credentialstore.CredentialStoreManager credentialStoreManager)
Creates the instance.
Parameters:
objectName - The object name identifying this instance
credentialWriter - The credential writer
credentialStoreManager - The credential store manager

Method Detail

getObjectName

public ObjectName getObjectName()
Returns the object name used for this mbean implementation instance.
Returns:
The object name

getCredentialStoreManager

protected oracle.axia.api.credentialstore.CredentialStoreManager getCredentialStoreManager()

setPassword

public void setPassword(String key,
                        String password,
                        boolean oneWay)
                 throws MBeanException
Description copied from interface: CredentialStoreMBean
Stores a password for the given key, using either a one-way or two-way encryption.
Specified by:
setPassword in interface CredentialStoreMBean
Parameters:
key - Key
password - pasword
oneWay - True if one way encryption should be use, false for two way encryption.
Throws:
MBeanException

validatePassword

public boolean validatePassword(String key,
                                String password)
                         throws MBeanException
Description copied from interface: CredentialStoreMBean
Validates a password against a password stored for the specified key.
Specified by:
validatePassword in interface CredentialStoreMBean
Parameters:
key - Key
password - pasword
Throws:
MBeanException

setKeystore

public void setKeystore(String key,
                        String password,
                        String urlPath)
                 throws MBeanException
Description copied from interface: CredentialStoreMBean
Stores a KeyStore for the given key.
Specified by:
setKeystore in interface CredentialStoreMBean
Parameters:
key - Key
password - pasword
urlPath - keystore url
Throws:
MBeanException

containsKey

public boolean containsKey(String key)
Description copied from interface: CredentialStoreMBean
Returns true if the key exists in the credential store.
Specified by:
containsKey in interface CredentialStoreMBean
Parameters:
key - Key

deleteKey

public void deleteKey(String key)
               throws MBeanException
Description copied from interface: CredentialStoreMBean
Deletes a key.
Specified by:
deleteKey in interface CredentialStoreMBean
Parameters:
key - Key
Throws:
MBeanException

clear

public void clear()
           throws MBeanException
Description copied from interface: CredentialStoreMBean
Removes all entries.
Specified by:
clear in interface CredentialStoreMBean
Throws:
MBeanException

save

protected void save(String... keys)
             throws IOException,
                    oracle.axia.api.credentialstore.CredentialStoreException
Saves the content of the credential store inside the bundle.
Parameters:
keys - The list of keys that has changed
Throws:
IOException - Exception saving the store
oracle.axia.api.credentialstore.CredentialStoreException - Exception saving the store

Skip navigation links

Oracle Communications Service Broker Configuration and Runtime MBean Java API Referencee
6.1

E38079-01


Copyright © 2013, Oracle and/or its affiliates. All rights reserved.