|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-04 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.adf.share.security.credentialstore.spi.GenericCredentialStore
oracle.adf.share.security.providers.jps.CSFCredentialStore
public class CSFCredentialStore
| Field Summary | |
|---|---|
static java.lang.String |
APP_MAP_NAME
|
protected static java.lang.String |
DEFAULT_JPS_LOCATION_DT
|
protected ADFContext |
mADFContext
|
protected oracle.security.jps.service.credstore.CredentialStore |
mCSFCredStore
|
protected java.util.Hashtable |
mEnv
|
protected java.lang.String |
mJps_store
|
protected java.lang.String |
mJpsConfigLocation
|
protected static ADFLogger |
sLogger
|
| Fields inherited from class oracle.adf.share.security.credentialstore.spi.GenericCredentialStore |
|---|
_applicationUser, _contextName, MAP_CREDENTIAL_SEPARATOR |
| Constructor Summary | |
|---|---|
CSFCredentialStore()
Initialize the csf credential store using the ADF Security context environment. |
|
CSFCredentialStore(java.lang.String adfContextName)
Initialize the csf credential store using the config from named ADF context |
|
| Method Summary | |
|---|---|
protected void |
checkInitCSFStore()
|
Credential |
fetchCredential(java.lang.String credentialKey)
Fetches the credential for the given key. |
java.io.Serializable |
fetchSerializableCredential(java.lang.String credentialKey)
Fetches the serializable credential for the given key. |
java.io.Serializable |
fetchSerializableCredentialForCurrentUser(java.lang.String credentialKey)
Fetches the serializable credential for the given key. |
java.lang.String |
getJpsConfigLocation()
|
protected java.lang.String |
getMapName()
|
void |
initialize(java.util.Hashtable props)
Internal: Applications should not use this method. Initializes the credentialstore from the properties. |
protected static void |
logFine(java.lang.String methodName,
java.lang.String msg)
|
protected static void |
logFiner(java.lang.String methodName,
java.lang.String msg)
|
protected static void |
logFinest(java.lang.String methodName,
java.lang.String msg)
|
protected java.util.Hashtable |
obtainCredentialProperties(java.lang.String adfCtxName)
|
void |
removeCredential(java.lang.String credentialKey)
Deletes the credential for the given credential key. |
void |
removeCredential(java.lang.String credentialKey,
java.security.Principal principal)
Deletes the credential for the given credential key and user principal. |
protected void |
removeCredentialCSF(java.lang.String credentialKey,
java.lang.String userUniqueId)
Deletes the credential for the given credential key and user principal. |
void |
storeCredential(Credential credential,
java.lang.String credentialKey)
Stores the given credential using the given credential key scoped to the current user. |
void |
storeCredential(Credential credential,
java.lang.String credentialKey,
java.security.Principal principal)
Stores the given credential using the given credential key scoped to the given user principal. |
protected void |
storeCredentialCSF(Credential credential,
java.lang.String credentialKey,
java.lang.String userUniqueId)
Stores the given credential using the given credential key scoped to the given user principal. |
void |
storeSerializableCredential(java.io.Serializable credential,
java.lang.String credentialKey,
java.security.Principal principal)
Stores the given credential using the given credential key scoped to the given user principal. |
protected void |
storeSerializableCredentialCSF(java.io.Serializable credential,
java.lang.String credentialKey,
java.lang.String userUniqueId)
Stores the given credential using the given credential key scoped to the given user principal. |
| Methods inherited from class oracle.adf.share.security.credentialstore.spi.GenericCredentialStore |
|---|
getApplicationUserName, getCredStoreAbsoluteLocation, getDefaultUser, getSecurityContext, getUserPrincipal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient java.util.Hashtable mEnv
protected static ADFLogger sLogger
protected ADFContext mADFContext
protected java.lang.String mJps_store
protected oracle.security.jps.service.credstore.CredentialStore mCSFCredStore
public static final java.lang.String APP_MAP_NAME
protected static final java.lang.String DEFAULT_JPS_LOCATION_DT
protected java.lang.String mJpsConfigLocation
| Constructor Detail |
|---|
public CSFCredentialStore()
public CSFCredentialStore(java.lang.String adfContextName)
adfContextName - ADF Context Name to obtain the concerned security
environment| Method Detail |
|---|
public java.lang.String getJpsConfigLocation()
protected java.util.Hashtable obtainCredentialProperties(java.lang.String adfCtxName)
protected void checkInitCSFStore()
throws oracle.security.jps.JpsException
oracle.security.jps.JpsExceptionpublic void initialize(java.util.Hashtable props)
GenericCredentialStore
initialize in interface CredentialStorageinitialize in class GenericCredentialStoreprops -
public void storeCredential(Credential credential,
java.lang.String credentialKey)
storeCredential in interface CredentialStoragestoreCredential in class GenericCredentialStorecredential - Credential to be storedcredentialKey - Key to be used for storing the credential
public Credential fetchCredential(java.lang.String credentialKey)
throws CredentialNotFoundException
fetchCredential in interface CredentialStoragefetchCredential in class GenericCredentialStorecredentialKey - Key for which the credential needs to be fetched
oracle.security.jps.service.credstore.CredentialNotFoundException - if the credential does not exist
CredentialNotFoundException
public java.io.Serializable fetchSerializableCredentialForCurrentUser(java.lang.String credentialKey)
throws CredentialNotFoundException
fetchSerializableCredentialForCurrentUser in interface CredentialStoragefetchSerializableCredentialForCurrentUser in class GenericCredentialStorecredentialKey - Key to be used to fetch the credential
oracle.security.jps.service.credstore.CredentialNotFoundException - if the credential for the given key
cannot be found
TODO: Check should we just throw exception incase current user principal is
not available? Otherwise there's no difference between this and
fetchSerializableCredential api.
CredentialNotFoundException
public java.io.Serializable fetchSerializableCredential(java.lang.String credentialKey)
throws CredentialNotFoundException
fetchSerializableCredential in interface CredentialStoragefetchSerializableCredential in class GenericCredentialStorecredentialKey - Key to be used to fetch the credential
oracle.security.jps.service.credstore.CredentialNotFoundException - if the credential for the given key
cannot be found
CredentialNotFoundException
public void removeCredential(java.lang.String credentialKey)
throws CredentialNotFoundException
removeCredential in interface CredentialStorageremoveCredential in class GenericCredentialStorecredentialKey - Key for the credential to be deleted.
oracle.security.jps.service.credstore.CredentialNotFoundException - if the credential for the given key
cannot be found
CredentialNotFoundException
public void storeCredential(Credential credential,
java.lang.String credentialKey,
java.security.Principal principal)
storeCredential in interface CredentialProvisioningcredential - Credential to be storedcredentialKey - Key to be used for storing the credentialprincipal - User Principal to store the credential against
protected void storeCredentialCSF(Credential credential,
java.lang.String credentialKey,
java.lang.String userUniqueId)
credential - Credential to be storedcredentialKey - Key to be used for storing the credentialuserUniqueId - User's unique id to store the credential against
public void storeSerializableCredential(java.io.Serializable credential,
java.lang.String credentialKey,
java.security.Principal principal)
storeSerializableCredential in interface CredentialProvisioningcredential - Serializable Credential to be storedcredentialKey - Key to be used for storing the credentialprincipal - User Principal to store the credential against
protected void storeSerializableCredentialCSF(java.io.Serializable credential,
java.lang.String credentialKey,
java.lang.String userUniqueId)
credential - Serializable Credential to be storedcredentialKey - Key to be used for storing the credentialuserUniqueId - User's unique id to store the credential against
public void removeCredential(java.lang.String credentialKey,
java.security.Principal principal)
throws CredentialNotFoundException
removeCredential in interface CredentialProvisioningcredentialKey - key for the credential to be deletedprincipal - User Principal for which the credential needs to be deleted.
CredentialNotFoundException - if the credential does not exist for
the given key
protected void removeCredentialCSF(java.lang.String credentialKey,
java.lang.String userUniqueId)
throws CredentialNotFoundException
credentialKey - key for the credential to be deleteduserUniqueId - User's unique id for which the credential needs to be deleted.
CredentialNotFoundExceptionprotected java.lang.String getMapName()
protected static void logFine(java.lang.String methodName,
java.lang.String msg)
protected static void logFiner(java.lang.String methodName,
java.lang.String msg)
protected static void logFinest(java.lang.String methodName,
java.lang.String msg)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-04 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||