Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.0.0)

E17486-01

oracle.adf.share.security.credentialstore
Class Credential

java.lang.Object
  extended by oracle.adf.share.security.credentialstore.Credential
All Implemented Interfaces:
java.io.Serializable, java.util.Map

public class Credential
extends java.lang.Object
implements java.util.Map, java.io.Serializable

Internal: Applications should not use this class. This class implements map and use a hashtable to store and retrieve property values.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
static java.lang.String PASSWORD_ATTRIBUTE
           
 
Constructor Summary
Credential()
          Internal: Applications should not use this method. Sole constructor
 
Method Summary
 void clear()
          Internal: Applications should not use this method. Clears this hashtable so that it contains no keys
 boolean containsKey(java.lang.Object key)
          Internal: Applications should not use this method. Returns true if this map contains a mapping for the specified key.
 boolean containsValue(java.lang.Object value)
          Internal: Applications should not use this method. Returns true if this map maps one or more keys to the specified value.
 java.util.Set entrySet()
          Internal: Applications should not use this method. Returns a Set view of the entries contained in this Hashtable.
 java.lang.Object get(java.lang.Object key)
          Internal: Applications should not use this method. Returns the value to which the specified key is mapped in this hashtable.
 java.util.Hashtable getProperties()
          Internal: Applications should not use this method. Returns properties in a Hashtable.
 java.lang.String getProperty(java.lang.String propName)
          Internal: Applications should not use this method. Gets the property specify by the name of the property.
 java.util.Set getPropertyNames()
          Internal: Applications should not use this method. Gets the property names
 int hashCode()
          Internal: Applications should not use this method. Returns the hash code value for this map.
 boolean isEmpty()
          Internal: Applications should not use this method. Returns true if this map contains no key-value mappings.
 java.util.Set keySet()
          Internal: Applications should not use this method. Returns a Set view of the keys contained in this Hashtable.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Internal: Applications should not use this method. Maps the specified key to the specified value in this hashtable.
 void putAll(java.util.Map map)
          Internal: Applications should not use this method. Copies all of the mappings from the specified Map to this Hashtable These mappings will replace any mappings that this Hashtable had for any of the keys currently in the specified Map.
 java.lang.Object remove(java.lang.Object key)
          Internal: Applications should not use this method. Removes the key (and its corresponding value) from this hashtable
 void setProperty(java.lang.String propName, java.lang.String value)
          Internal: Applications should not use this method. Sets the property value for the specify property name
 int size()
          Internal: Applications should not use this method. Returns the number of key-value mappings in this map.
 java.util.Collection values()
          Internal: Applications should not use this method. Returns a collection view of the values contained in this map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals
 

Field Detail

PASSWORD_ATTRIBUTE

public static java.lang.String PASSWORD_ATTRIBUTE
Constructor Detail

Credential

public Credential()
Internal: Applications should not use this method. Sole constructor

Method Detail

getProperties

public java.util.Hashtable getProperties()
Internal: Applications should not use this method. Returns properties in a Hashtable.

Returns:
a hashtable of properties

getProperty

public java.lang.String getProperty(java.lang.String propName)
Internal: Applications should not use this method. Gets the property specify by the name of the property.

Parameters:
propName - the property name
Returns:
the property value, or null if not found

setProperty

public void setProperty(java.lang.String propName,
                        java.lang.String value)
Internal: Applications should not use this method. Sets the property value for the specify property name

Parameters:
propName - the property name
value - the property value

getPropertyNames

public java.util.Set getPropertyNames()
Internal: Applications should not use this method. Gets the property names

Returns:
a collection of property names

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Internal: Applications should not use this method. Maps the specified key to the specified value in this hashtable. Neither the key nor the value can be null. The value can be retrieved by calling the get method with a key that is equal to the original key.

Specified by:
put in interface java.util.Map
Parameters:
value - the value.
key - the hashtable key
Returns:
the previous value of the specified key in this hashtable, or null if it did not have one.
Throws:
NullPoinerException - if the key is null

get

public java.lang.Object get(java.lang.Object key)
Internal: Applications should not use this method. Returns the value to which the specified key is mapped in this hashtable.

Specified by:
get in interface java.util.Map
Parameters:
key - a key in the hashtable
Returns:
the value to which the key is mapped in this hashtable; null if the key is not mapped to any value in this hashtable.
Throws:
NullPoinerException - if the key is null

remove

public java.lang.Object remove(java.lang.Object key)
Internal: Applications should not use this method. Removes the key (and its corresponding value) from this hashtable

Specified by:
remove in interface java.util.Map
Parameters:
key - the key that needs to be removed.
Returns:
the value to which the key had been mapped in this hashtable, or null if the key did not have a mapping
Throws:
NullPoinerException - if the key is null

keySet

public java.util.Set keySet()
Internal: Applications should not use this method. Returns a Set view of the keys contained in this Hashtable. The Set is backed by the Hashtable, so changes to the Hashtable are reflected in the Set, and vice-versa. The Set supports element removal (which removes the corresponding entry from the Hashtable), but not element addition.

Specified by:
keySet in interface java.util.Map
Returns:
a set view of the keys contained in this map

entrySet

public java.util.Set entrySet()
Internal: Applications should not use this method. Returns a Set view of the entries contained in this Hashtable. Each element in this collection is a Map.Entry. The Set is backed by the Hashtable, so changes to the Hashtable are reflected in the Set, and vice-versa. The Set supports element removal (which removes the corresponding entry from the Hashtable), but not element addition.

Specified by:
entrySet in interface java.util.Map
Returns:
a set view of the mappings contained in this map

putAll

public void putAll(java.util.Map map)
Internal: Applications should not use this method. Copies all of the mappings from the specified Map to this Hashtable These mappings will replace any mappings that this Hashtable had for any of the keys currently in the specified Map.

Specified by:
putAll in interface java.util.Map
Parameters:
map - Mappings to be stored in this map.
Throws:
NullPoinerException - if the key is null

values

public java.util.Collection values()
Internal: Applications should not use this method. Returns a collection view of the values contained in this map. The collection is backed by the map, so changes to the map are reflected in the collection, and vice-versa. If the map is modified while an iteration over the collection is in progress, the results of the iteration are undefined. The collection supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Collection.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.

Specified by:
values in interface java.util.Map
Returns:
a collection view of the values contained in this map.

containsValue

public boolean containsValue(java.lang.Object value)
Internal: Applications should not use this method. Returns true if this map maps one or more keys to the specified value. More formally, returns true if and only if this map contains at least one mapping to a value v such that (value==null ? v==null : value.equals(v)). This operation will probably require time linear in the map size for most implementations of the Map interface

Specified by:
containsValue in interface java.util.Map
Parameters:
value - value whose presence in this map is to be tested.
Returns:
true if this map maps one or more keys to the specified value

containsKey

public boolean containsKey(java.lang.Object key)
Internal: Applications should not use this method. Returns true if this map contains a mapping for the specified key. More formally, returns true if and only if this map contains at a mapping for a key k such that (key==null ? k==null : key.equals(k)). (There can be at most one such mapping.)

Specified by:
containsKey in interface java.util.Map
Parameters:
key - key whose presence in this map is to be tested.
Returns:
true if this map contains a mapping for the specified key.
Throws:
NullPoinerException - if the key is null

isEmpty

public boolean isEmpty()
Internal: Applications should not use this method. Returns true if this map contains no key-value mappings.

Specified by:
isEmpty in interface java.util.Map
Returns:
true if this map contains no key-value mappings.

hashCode

public int hashCode()
Internal: Applications should not use this method. Returns the hash code value for this map. The hash code of a map is defined to be the sum of the hashCodes of each entry in the map's entrySet view.

Specified by:
hashCode in interface java.util.Map
Overrides:
hashCode in class java.lang.Object
Returns:
the hash code value for this map

size

public int size()
Internal: Applications should not use this method. Returns the number of key-value mappings in this map. If the map contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Specified by:
size in interface java.util.Map
Returns:
the number of key-value mappings in this map

clear

public void clear()
Internal: Applications should not use this method. Clears this hashtable so that it contains no keys

Specified by:
clear in interface java.util.Map

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.0.0)

E17486-01

Copyright © 1997, 2011, Oracle. All rights reserved.