|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.security.jps.service.credstore.CredentialMapImpl
public class CredentialMapImpl
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
Constructor Summary | |
---|---|
CredentialMapImpl()
|
Method Summary | |
---|---|
void |
clear()
Deletes all the entries from the map and store. |
boolean |
containsKey(java.lang.String key)
Returns true if this map contains a mapping for the specified key. |
void |
deleteCredential(java.lang.String key)
Removes the Credential objects associated with the specified key. |
Credential |
getCredential(java.lang.String key)
Returns the Credential object associated with the specified key. |
boolean |
isEmpty()
Check if this credential map is empty. |
Set |
keySet()
Returns the Set instance. |
void |
readExternal(ObjectInput in)
|
void |
resetCredential(java.lang.String key,
Credential credential)
Override the Credential object to the specified key. |
void |
setCredential(java.lang.String key,
Credential credential)
Assigns the Credentialobject to the specified key. |
int |
size()
Returns the number of mappings in this map. |
java.lang.String |
toString()
Returns the map name as string representation of this map. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
Constructor Detail |
---|
public CredentialMapImpl()
Method Detail |
---|
public Set keySet() throws CredStoreException
keySet
in interface CredentialMap
CredStoreException
- If there is an error.public boolean isEmpty() throws CredStoreException
isEmpty
in interface CredentialMap
CredStoreException
- If there is an error.public boolean containsKey(java.lang.String key) throws CredStoreException
containsKey
in interface CredentialMap
key
- - The credential key. Must be non-null and length must be greater
than zero.
CredStoreException
- If there is an error.
CredStoreRuntimeException
- If invalid key (null or empty) is passedpublic int size() throws CredStoreException
size
in interface CredentialMap
CredStoreException
- If there is an error.public Credential getCredential(java.lang.String key) throws CredentialExpiredException, CredStoreException
getCredential
in interface CredentialMap
key
- The credential key. Must be non-null and length must be greater
than zero.
CredentialExpiredException
- If this credential is already expired
CredStoreException
- If there is an error.
CredStoreRuntimeException
- If invalid key (null or empty) is passedpublic void setCredential(java.lang.String key, Credential credential) throws CredStoreException, CredentialAlreadyExistsException, CredentialInvalidException
setCredential
in interface CredentialMap
key
- - The credential key. Must be non-null and length must be greater
than zero.credential
- - The credential must be non-null
CredStoreException
- If there is an error or null credentials are
passed to be set.
CredentialAlreadyExistsException
- If this credential already exists
CredentialInvalidException
- If the credential value is not valid and
not be stored
CredStoreRuntimeException
- If invalid key (null or empty) is passedpublic void resetCredential(java.lang.String key, Credential credential) throws CredStoreException, CredentialInvalidException
resetCredential
in interface CredentialMap
key
- - The credential key. Must be non-null and length must be greater
than zero.credential
- - The credential must be non-null
CredStoreException
- If there is an error or null credentials are
passed to be set.
CredentialInvalidException
- If the credential value is not valid and
not be stored
CredStoreRuntimeException
- If invalid key (null or empty) is passedpublic void deleteCredential(java.lang.String key) throws CredStoreException, CredentialNotFoundException
deleteCredential
in interface CredentialMap
key
- - The credential key. Must be non-null and length must be greater
than zero.
CredStoreException
- If there is an error.
CredentialNotFoundException
- If this credential does not exist
CredStoreRuntimeException
- If invalid key (null or empty) is passedpublic void clear() throws CredStoreException
clear
in interface CredentialMap
CredStoreException
- If there is an error.public java.lang.String toString()
toString
in interface CredentialMap
toString
in class java.lang.Object
public void writeExternal(ObjectOutput out) throws java.io.IOException
writeExternal
in interface Externalizable
java.io.IOException
public void readExternal(ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |