Skip navigation links

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

E17486-04


oracle.adf.share.security
Class ADFNoCredentialSupportStore

java.lang.Object
  extended by oracle.adf.share.security.credentialstore.spi.GenericCredentialStore
      extended by oracle.adf.share.security.ADFNoCredentialSupportStore

All Implemented Interfaces:
CredentialProvisioning, CredentialProvisioning2, CredentialStorage, CredentialStorage2

public class ADFNoCredentialSupportStore
extends GenericCredentialStore
implements CredentialProvisioning2

This class is mainly used for handle usercases like: in GlassFish, OPSS credential management is not supported, but keep ADF framework not broken. This empty credential store impl will do the NOOP for all credential retrieve/update/remove/save methods.


Field Summary

 

Fields inherited from class oracle.adf.share.security.credentialstore.spi.GenericCredentialStore
_applicationUser, _contextName, MAP_CREDENTIAL_SEPARATOR

 

Constructor Summary
ADFNoCredentialSupportStore()
           
ADFNoCredentialSupportStore(java.lang.String ctxName)
           

 

Method Summary
 Credential fetchCredential(java.lang.String credKey)
          Internal: Applications should not use this method. Retrieves the credential for the specified credential key.
 Credential fetchCredential(java.lang.String mapName, java.lang.String adfCredKey, java.lang.String credKey)
          Internal: Applications should not use this method. Retrieves the credential for the specified credential key.
 java.io.Serializable fetchSerializableCredential(java.lang.String credKey)
          Internal: Applications should not use this method. Returns the serializable credential for the specified credential key.
 java.io.Serializable fetchSerializableCredentialForCurrentUser(java.lang.String credKey)
          Internal: Applications should not use this method. Returns the serializable credential for the specified credential key for current user.
 java.lang.String getApplicationUserName()
          Internal: Applications should not use this method.
 void initialize(java.util.Hashtable props)
          Internal: Applications should not use this method. Initializes the credentialstore from the properties.
 void removeCredential(java.lang.String credKey)
          Internal: Applications should not use this method. Removes the credential specified credential idebtifier.
 void removeCredential(java.lang.String credKey, java.security.Principal principal)
          Internal: Applications should not use this method. Removes the credential specified by the credential key.
 void removeCredential(java.lang.String mapName, java.lang.String adfCredKey, java.lang.String credKey, java.security.Principal principal)
          Internal: Applications should not use this method. Removes the credential specified by the credential key.
 void storeCredential(Credential cred, java.lang.String credKey)
          Internal: Applications should not use this method. Store the credential using the specify credential key.
 void storeCredential(Credential cred, java.lang.String credKey, java.security.Principal principal)
          Internal: Applications should not use this method. Store the credential for the specified credential key and principal.
 void storeCredential(Credential cred, java.lang.String mapName, java.lang.String adfCredKey, java.lang.String credKey, java.security.Principal principal)
          Internal: Applications should not use this method. Store the credential for the specified credential key and principal.
 void storeSerializableCredential(java.io.Serializable cred, java.lang.String credKey, java.security.Principal principal)
          Internal: Applications should not use this method. Store the credential for the specified credential key and principal.
 void storeSerializableCredential(java.io.Serializable cred, java.lang.String mapName, java.lang.String adfCredKey, java.lang.String credKey, java.security.Principal principal)
          Internal: Applications should not use this method. Store the credential for the specified credential key and principal.

 

Methods inherited from class oracle.adf.share.security.credentialstore.spi.GenericCredentialStore
fetchSerializableCredential, fetchSerializableCredentialForCurrentUser, getCredStoreAbsoluteLocation, getDefaultUser, getSecurityContext, getUserPrincipal, removeCredential, storeCredential

 

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

 

Constructor Detail

ADFNoCredentialSupportStore

public ADFNoCredentialSupportStore()

ADFNoCredentialSupportStore

public ADFNoCredentialSupportStore(java.lang.String ctxName)

Method Detail

initialize

public void initialize(java.util.Hashtable props)
Description copied from class: GenericCredentialStore
Internal: Applications should not use this method. Initializes the credentialstore from the properties.
Specified by:
initialize in interface CredentialStorage
Specified by:
initialize in class GenericCredentialStore
Parameters:
props - the properties to initialize with

storeCredential

public void storeCredential(Credential cred,
                            java.lang.String credKey)
Description copied from class: GenericCredentialStore
Internal: Applications should not use this method. Store the credential using the specify credential key.
Specified by:
storeCredential in interface CredentialStorage
Specified by:
storeCredential in class GenericCredentialStore
Parameters:
cred - the crdential to be stored
credKey - the credential key

fetchCredential

public Credential fetchCredential(java.lang.String credKey)
                           throws CredentialNotFoundException
Description copied from class: GenericCredentialStore
Internal: Applications should not use this method. Retrieves the credential for the specified credential key.
Specified by:
fetchCredential in interface CredentialStorage
Specified by:
fetchCredential in class GenericCredentialStore
Parameters:
credKey - the credential key
Returns:
the credential, or null if not found
Throws:
CredentialNotFoundException - if the credential for the given key cannot be found

fetchCredential

public Credential fetchCredential(java.lang.String mapName,
                                  java.lang.String adfCredKey,
                                  java.lang.String credKey)
                           throws CredentialNotFoundException
Description copied from class: GenericCredentialStore
Internal: Applications should not use this method. Retrieves the credential for the specified credential key.
Specified by:
fetchCredential in interface CredentialStorage2
Overrides:
fetchCredential in class GenericCredentialStore
Parameters:
mapName - the map name
adfCredKey - ADF cred key
credKey - the credential key
Returns:
the credential, or null if not found
Throws:
CredentialNotFoundException - if the credential for the given key cannot be found

fetchSerializableCredential

public java.io.Serializable fetchSerializableCredential(java.lang.String credKey)
                                                 throws CredentialNotFoundException
Description copied from class: GenericCredentialStore
Internal: Applications should not use this method. Returns the serializable credential for the specified credential key.
Specified by:
fetchSerializableCredential in interface CredentialStorage
Specified by:
fetchSerializableCredential in class GenericCredentialStore
Parameters:
credKey - the credential key
Returns:
a valid credential, or null if not found
Throws:
CredentialNotFoundException - if the credential for the given key cannot be found

fetchSerializableCredentialForCurrentUser

public java.io.Serializable fetchSerializableCredentialForCurrentUser(java.lang.String credKey)
                                                               throws CredentialNotFoundException
Description copied from class: GenericCredentialStore
Internal: Applications should not use this method. Returns the serializable credential for the specified credential key for current user.
Specified by:
fetchSerializableCredentialForCurrentUser in interface CredentialStorage
Overrides:
fetchSerializableCredentialForCurrentUser in class GenericCredentialStore
Parameters:
credKey - the credential key
Returns:
a valid credential, or null if not found
Throws:
CredentialNotFoundException - if the credential for the given key cannot be found

getApplicationUserName

public java.lang.String getApplicationUserName()
Description copied from class: GenericCredentialStore
Internal: Applications should not use this method.
Overrides:
getApplicationUserName in class GenericCredentialStore

removeCredential

public void removeCredential(java.lang.String credKey)
                      throws CredentialNotFoundException
Description copied from class: GenericCredentialStore
Internal: Applications should not use this method. Removes the credential specified credential idebtifier.
Specified by:
removeCredential in interface CredentialStorage
Specified by:
removeCredential in class GenericCredentialStore
Parameters:
credKey - the credential key
Throws:
CredentialNotFoundException - if the credential for the given key cannot be found

storeCredential

public void storeCredential(Credential cred,
                            java.lang.String mapName,
                            java.lang.String adfCredKey,
                            java.lang.String credKey,
                            java.security.Principal principal)
Description copied from interface: CredentialProvisioning2
Internal: Applications should not use this method. Store the credential for the specified credential key and principal.
Specified by:
storeCredential in interface CredentialProvisioning2
Parameters:
cred - the credential
mapName - the map name
adfCredKey - ADF cred key
credKey - the credential key
principal - the user or role principal

storeSerializableCredential

public void storeSerializableCredential(java.io.Serializable cred,
                                        java.lang.String mapName,
                                        java.lang.String adfCredKey,
                                        java.lang.String credKey,
                                        java.security.Principal principal)
Description copied from interface: CredentialProvisioning2
Internal: Applications should not use this method. Store the credential for the specified credential key and principal.
Specified by:
storeSerializableCredential in interface CredentialProvisioning2
Parameters:
cred - the serializable credential
mapName - the map name
adfCredKey - ADF cred key
credKey - the credential key
principal - the user or role principal

removeCredential

public void removeCredential(java.lang.String mapName,
                             java.lang.String adfCredKey,
                             java.lang.String credKey,
                             java.security.Principal principal)
                      throws CredentialNotFoundException
Description copied from interface: CredentialProvisioning2
Internal: Applications should not use this method. Removes the credential specified by the credential key.
Specified by:
removeCredential in interface CredentialProvisioning2
Parameters:
mapName - the map name
adfCredKey - ADF cred key
credKey - the credential key
principal - the user or role principal
Throws:
CredentialNotFoundException - if the credential does not exist for the given key

storeCredential

public void storeCredential(Credential cred,
                            java.lang.String credKey,
                            java.security.Principal principal)
Description copied from interface: CredentialProvisioning
Internal: Applications should not use this method. Store the credential for the specified credential key and principal.
Specified by:
storeCredential in interface CredentialProvisioning
Parameters:
cred - the credential
credKey - the credential key
principal - the user or role principal

storeSerializableCredential

public void storeSerializableCredential(java.io.Serializable cred,
                                        java.lang.String credKey,
                                        java.security.Principal principal)
Description copied from interface: CredentialProvisioning
Internal: Applications should not use this method. Store the credential for the specified credential key and principal.
Specified by:
storeSerializableCredential in interface CredentialProvisioning
Parameters:
cred - the serializable credential
credKey - the credential key
principal - the user or role principal

removeCredential

public void removeCredential(java.lang.String credKey,
                             java.security.Principal principal)
                      throws CredentialNotFoundException
Description copied from interface: CredentialProvisioning
Internal: Applications should not use this method. Removes the credential specified by the credential key.
Specified by:
removeCredential in interface CredentialProvisioning
Parameters:
credKey - the credential key
principal - the user or role principal
Throws:
CredentialNotFoundException - if the credential does not exist for the given key

Skip navigation links

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

E17486-04


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