Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.0.0)

E10686-01


oracle.adf.share.security.credentialstore
Class CredentialStoreContext

java.lang.Object
  extended by oracle.adf.share.security.credentialstore.CredentialStoreContext


public class CredentialStoreContext
extends java.lang.Object

Internal: Applications should not use this class. This class provide the starting point for getting CredentialStore related objects and a centralized place for managing CredentialStore properties.


Constructor Summary
CredentialStoreContext(java.util.Hashtable env)
           

 

Method Summary
static void checkSerializable(java.lang.String className, java.lang.String methodName, Credential cred, java.lang.String credKey)
          Checks if the given credential passes is serializable or not.
static Credential fetchSessionCredential(java.lang.String credKey)
          Internal: Applications should not use this method. Fetch the session credential of the specified credential key.
 CredentialProvisioning getCredentialProvisioner(java.lang.String providerClassName)
          Internal: Applications should not use this method. Gets the credential provisioner specified by the provider class name.
 CredentialStorage getCredentialStorage(java.lang.String contextName)
          Internal: Applications should not use this method. Gets the credential store provider for the specified provider type.
 CredentialStorage getCredentialStoreProvider(java.lang.String providerClassName)
          Internal: Applications should not use this method. Gets the credential store provider for the specified provider type.
 CredentialProvisioning getDefaultCredentialProvisioner()
          Internal: Applications should not use this method. Gets the default credential provisioner.
 CredentialStorage getDefaultCredentialStoreProvider()
          Internal: Applications should not use this method. Gets the default credential store.
static CredentialStoreContext getInstance()
          Internal: Applications should not use this method. Instantiates a CredentialStore context.
 void initialize(java.util.Properties props)
          Deprecated. Deprecated since 11.1.1.0.
static void storeSessionCredential(Credential cred, java.lang.String credKey)
          Internal: Applications should not use this method. Stores the session credential.

 

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

 

Constructor Detail

CredentialStoreContext

public CredentialStoreContext(java.util.Hashtable env)

Method Detail

getInstance

public static CredentialStoreContext getInstance()
Internal: Applications should not use this method. Instantiates a CredentialStore context.
Returns:
an instance of the CredentialStoreContext

initialize

public void initialize(java.util.Properties props)
Deprecated. Deprecated since 11.1.1.0.
Internal: Applications should not use this method. Initialize with the given properties
Parameters:
props - the properties to initialize

getDefaultCredentialStoreProvider

public CredentialStorage getDefaultCredentialStoreProvider()
Internal: Applications should not use this method. Gets the default credential store.
Returns:
the default credential store

getDefaultCredentialProvisioner

public CredentialProvisioning getDefaultCredentialProvisioner()
Internal: Applications should not use this method. Gets the default credential provisioner.
Returns:
the default credential provisioner

getCredentialProvisioner

public CredentialProvisioning getCredentialProvisioner(java.lang.String providerClassName)
Internal: Applications should not use this method. Gets the credential provisioner specified by the provider class name.
Parameters:
providerClassName - the class name of the provider
Returns:
the credential provisioner

getCredentialStoreProvider

public CredentialStorage getCredentialStoreProvider(java.lang.String providerClassName)
Internal: Applications should not use this method. Gets the credential store provider for the specified provider type.
Parameters:
providerClassName - the class name of the provider
Returns:
the credential store

getCredentialStorage

public CredentialStorage getCredentialStorage(java.lang.String contextName)
Internal: Applications should not use this method. Gets the credential store provider for the specified provider type.
Parameters:
providerClassName - the class name of the provider
Returns:
the credential store

storeSessionCredential

public static void storeSessionCredential(Credential cred,
                                          java.lang.String credKey)
Internal: Applications should not use this method. Stores the session credential. The credential is available only for the duration of the session.
Parameters:
cred - the credential to be stored
credKey - the key of the credential

fetchSessionCredential

public static Credential fetchSessionCredential(java.lang.String credKey)
                                         throws CredentialNotFoundException
Internal: Applications should not use this method. Fetch the session credential of the specified credential key.
Parameters:
credKey - the credential key
Returns:
the credential for the given key
Throws:
CredentialNotFoundException - if the credential for the given key cannot be found

checkSerializable

public static void checkSerializable(java.lang.String className,
                                     java.lang.String methodName,
                                     Credential cred,
                                     java.lang.String credKey)
Checks if the given credential passes is serializable or not. If not, then a runtime exception is thrown indicating the same.
Parameters:
className - Class Name where this check is made
methodName - Method Name where this check is made
cred - Credential to be checked
credKey - Identifier for the credential

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.0.0)

E10686-01


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