Skip navigation links

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

E14651-02


oracle.security.jps.mas.mgmt.jmx.credstore
Class PortableCredentialMap

java.lang.Object
  extended by oracle.security.jps.mas.mgmt.jmx.credstore.PortableCredentialMap

All Implemented Interfaces:
java.io.Serializable

public class PortableCredentialMap
extends java.lang.Object
implements java.io.Serializable

Class which helps makes a portable Password Credential.

See Also:
Serialized Form

Constructor Summary
PortableCredentialMap()
           
PortableCredentialMap(java.util.Map mapCredentials)
           

 

Method Summary
 void clear()
          Deletes all the entries from the map.
 boolean containsKey(java.lang.String key)
          Returns true if this map contains a mapping for the specified key.
 void deletePortableCredential(java.lang.String key)
          Removes the Credential objects associated with the specified key.
static PortableCredentialMap from(javax.management.openmbean.CompositeData cd)
          Create an instance of the model specific class out of an associated CompositeData instance.
 PortableCredential getPortableCredential(java.lang.String key)
          Returns the Credential object associated with the specified key.
 boolean isEmpty()
          Check if this portable credential map is empty
 java.util.Set keySet()
          Returns the Set instance.
 void resetPortableCredential(java.lang.String key, PortableCredential credential)
          Override the Credential object to the specified key.
 void setPortableCredential(java.lang.String key, PortableCredential credential)
          Assigns the PortableCredential object to the specified key.
 int size()
          Returns the number of mappings in this map.
 javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
          Convert an instance of this model specific type to a CompositeData.
static javax.management.openmbean.CompositeType toCompositeType()
          Returns the CompositeType that describes this model specific class.

 

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

 

Constructor Detail

PortableCredentialMap

public PortableCredentialMap()

PortableCredentialMap

@ConstructorProperties(value="credentials")
public PortableCredentialMap(java.util.Map mapCredentials)

Method Detail

keySet

public java.util.Set keySet()
Returns the Set instance.
Returns:
Set of all the keys for this Portable Credential Map

isEmpty

public boolean isEmpty()
Check if this portable credential map is empty
Returns:
true if this portable Credential Map is empty, false otherwise

containsKey

public boolean containsKey(java.lang.String key)
Returns true if this map contains a mapping for the specified key.
Parameters:
key - The credential key
Returns:
true if this Portable Credential Map contains the specified key, false otherwise.

size

public int size()
Returns the number of mappings in this map.
Returns:
The size of this Portable Credential Map

getPortableCredential

public PortableCredential getPortableCredential(java.lang.String key)
Returns the Credential object associated with the specified key. It returns null if there is no such credential.
Parameters:
key - The credential key name
Returns:
The Portable credential for the specified key, null otherwise.

setPortableCredential

public void setPortableCredential(java.lang.String key,
                                  PortableCredential credential)
Assigns the PortableCredential object to the specified key.
Parameters:
key - The key of the credential
credential - The credential

resetPortableCredential

public void resetPortableCredential(java.lang.String key,
                                    PortableCredential credential)
Override the Credential object to the specified key.
Parameters:
key - The key of the credential
credential - The credential

deletePortableCredential

public void deletePortableCredential(java.lang.String key)
Removes the Credential objects associated with the specified key.
Parameters:
key - The credential key

clear

public void clear()
Deletes all the entries from the map.

toCompositeType

public static javax.management.openmbean.CompositeType toCompositeType()
Returns the CompositeType that describes this model specific class.
Returns:
CompositeType assiciated with this class.

toCompositeData

public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
Convert an instance of this model specific type to a CompositeData. This ensure that clients that do not have access to the model specific class can still use the MBean.
Parameters:
ct - - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.
Returns:
CompositeData which represents this class

from

public static PortableCredentialMap from(javax.management.openmbean.CompositeData cd)
Create an instance of the model specific class out of an associated CompositeData instance.
Parameters:
cd - Composite Data which has information regarding the object
Returns:
Object of this specific class got after retrieving information from the Composite Data

Skip navigation links

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

E14651-02


Copyright © 2009, Oracle. All rights reserved.