|
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.CredentialStoreImpl
public class CredentialStoreImpl
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
protected static java.lang.String |
STORE_NAME
|
Constructor Summary | |
---|---|
CredentialStoreImpl()
|
Method Summary | |
---|---|
void |
accept(ServiceInstanceVisitor visitor)
|
boolean |
containsCredential(java.lang.String mapName,
java.lang.String key)
Returns true if an entry associated with the specified map name for this key exist in this store, false otherwise. |
boolean |
containsMap(java.lang.String mapName)
Returns true if an map associated with the specified map name exist in this store, false otherwise. |
void |
deleteAllCredentials()
Removes all the Credential objects from this CredentialStore |
void |
deleteCredential(java.lang.String mapName,
java.lang.String key)
Removes the Credential objects associated with the specified mapName and key. |
void |
deleteCredentialMap(java.lang.String mapName)
Removes the CredentialMap objects associated with the specified mapName. |
Credential |
getCredential(java.lang.String mapName,
java.lang.String key)
Returns the Credential objects associated with the specified mapName and key. |
CredentialMap |
getCredentialMap(java.lang.String mapName)
Returns the CredentialMap of Credential objects associated with the specified mapName. |
Set |
getMapNames()
Returns the Set of all the available mapNames. |
java.lang.String |
getName()
|
Map |
getProperties()
Returns the configured properties for this instance |
void |
persist()
Persists state to backing store |
void |
refresh()
Refreshes state by reloading from backing store (which might have changed) |
void |
resetCredential(java.lang.String mapName,
java.lang.String key,
Credential credential)
Overrides the Credential object for the specified mapName and key. |
void |
resetCredentialMap(java.lang.String mapName,
CredentialMap credentialMap)
Overrides the CredentialMap of Credential objects for the specified mapName. |
void |
setCredential(java.lang.String mapName,
java.lang.String key,
Credential credential)
Stores the Credential object for the specified mapName and key. |
void |
setCredentialMap(java.lang.String mapName,
CredentialMap credentialMap)
Stores the CredentialMap of Credential objects for the specified mapName. |
java.lang.String |
toString()
|
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
protected static final java.lang.String STORE_NAME
Constructor Detail |
---|
public CredentialStoreImpl()
Method Detail |
---|
public boolean containsMap(java.lang.String mapName) throws CredStoreException
containsMap
in interface CredentialStore
mapName
- - The name of the map. Must be non-null and length must be
greater than zero.
CredStoreException
- if the Credential Store has not been initialized
CredStoreRuntimeException
- If invalid map name (null or empty) is passed.public CredentialMap getCredentialMap(java.lang.String mapName) throws CredStoreException
getCredentialMap
in interface CredentialStore
mapName
- - The name of the map. Must be non-null and length must be
greater than zero.
CredStoreException
- if the Credential Store has not been initialized
CredStoreRuntimeException
- If invalid map name (null or empty) is passed.public void setCredentialMap(java.lang.String mapName, CredentialMap credentialMap) throws CredentialInvalidException, CredentialAlreadyExistsException, CredStoreException
setCredentialMap
in interface CredentialStore
mapName
- - The map name. Must be non-null and length must be greater
than zero.credentialMap
- - Map of all the Credentials. Must not be null.
CredentialInvalidException
- if the credential data is not valid and
can not be stored
CredentialAlreadyExistsException
- if this credential already exists
CredStoreException
- if the Credential Store has not been initialized
properly or this credential cannot be set
CredStoreRuntimeException
- If invalid map name (null or empty) is
passed, or null credential map is passed.public void resetCredentialMap(java.lang.String mapName, CredentialMap credentialMap) throws CredentialInvalidException, CredStoreException
resetCredentialMap
in interface CredentialStore
mapName
- - The map name. Must be non-null and length must be greater
than zero.credentialMap
- - Map of all the Credentials
CredentialInvalidException
- if the credential data is not valid and
can not be stored
CredStoreException
- if the credential store has not been initialized
properly or this Credential cannot be set
CredStoreRuntimeException
- If invalid map name (null or empty) is
passed, or null credential map is passed.public void deleteCredentialMap(java.lang.String mapName) throws CredStoreException, CredentialNotFoundException
deleteCredentialMap
in interface CredentialStore
mapName
- - The name of the map. Must be non-null and length must be
greater than zero.
CredStoreException
- if the Credential Store has not been initialized
properly or credential cannot be deleted
CredentialNotFoundException
- if this credential does not exist.
CredStoreRuntimeException
- If invalid map name (null or empty) is passed.public Set getMapNames() throws CredStoreException
getMapNames
in interface CredentialStore
CredStoreException
- if the Credential Store has not been initializedpublic void deleteAllCredentials() throws CredStoreException
deleteAllCredentials
in interface CredentialStore
CredStoreException
- if the Credential Store has not been initializedpublic java.lang.String toString()
toString
in interface CredentialStore
toString
in class java.lang.Object
public Map getProperties()
getProperties
in interface CredentialStore
public boolean containsCredential(java.lang.String mapName, java.lang.String key) throws CredStoreException
containsCredential
in interface CredentialStore
mapName
- - The name of the map. Must be non-null and length must be
greater than zero.key
- - This Credential key of this map name. Must be non-null and
length must be greater than zero.
return true if this Credential exists, false otherwise
CredStoreException
- if the Credential Store has not been initialized
CredStoreRuntimeException
- If invalid map name (null or empty) is passed.public Credential getCredential(java.lang.String mapName, java.lang.String key) throws CredentialExpiredException, CredStoreException
getCredential
in interface CredentialStore
mapName
- - The name of the map. Must be non-null and length must be
greater than zero.key
- - The Credential key of this map name. Must be non-null and
length must be greater than zero.
return credetnial object if exists, null otherwise
CredentialExpiredException
- if this credential is already expired
CredStoreException
- if the Credential Store has not been initialized
CredStoreRuntimeException
- If invalid map name (null or empty) is passed.public void setCredential(java.lang.String mapName, java.lang.String key, Credential credential) throws CredentialInvalidException, CredentialAlreadyExistsException, CredStoreException
setCredential
in interface CredentialStore
mapName
- - The name of the map. Must be non-null and length must be
greater than zero.key
- - The name of the Credential key. Must be non-null and length
must be greater than zero.credential
- - The Credential object to be stored
CredentialInvalidException
- if the credential data is not valid and
can not be stored
CredentialAlreadyExistsException
- if this credential already exists
CredStoreException
- if the Credential Store has not been initialized
properly or this Credential Map cannot be set
CredStoreRuntimeException
- If invalid map name (null or empty) is passed.public void resetCredential(java.lang.String mapName, java.lang.String key, Credential credential) throws CredentialInvalidException, CredStoreException
resetCredential
in interface CredentialStore
mapName
- - The name of the map. Must be non-null and length must be
greater than zero.key
- - The name of the Credential key. Must be non-null and length must
be greater than zero.credential
- - The Credential object to be stored
CredentialInvalidException
- if the credential data is not valid and
can not be stored
CredStoreException
- if the Credential Store has not been initialized
properly or this Credential Map cannot be set
CredStoreRuntimeException
- If invalid map name (null or empty) is passed.public void deleteCredential(java.lang.String mapName, java.lang.String key) throws CredStoreException, CredentialNotFoundException
deleteCredential
in interface CredentialStore
mapName
- - The name of the map. Must be non-null and length must be
greater than zero.key
- - The key for this map name. Must be non-null and length must be
greater than zero.
CredStoreException
- if the Credential Store has not been initialized
CredentialNotFoundException
- if this credential does not exist.
CredStoreRuntimeException
- If invalid map name (null or empty) is passed.public void persist()
persist
in interface JpsPersistable
public void refresh()
refresh
in interface JpsPersistable
public void accept(ServiceInstanceVisitor visitor)
accept
in interface ServiceInstance
public java.lang.String getName()
getName
in interface ServiceInstance
|
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 |