public class CredentialStoreContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADF_NO_CRED_STORE_CLASS |
static java.lang.String |
SESSION_CREDENTIALS |
| Constructor and Description |
|---|
CredentialStoreContext(java.util.Hashtable env) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final java.lang.String SESSION_CREDENTIALS
public static final java.lang.String ADF_NO_CRED_STORE_CLASS
public static CredentialStoreContext getInstance()
public void initialize(java.util.Properties props)
props - the properties to initializepublic CredentialStorage getDefaultCredentialStoreProvider()
public CredentialProvisioning getDefaultCredentialProvisioner()
public CredentialProvisioning getCredentialProvisioner(java.lang.String providerClassName)
providerClassName - the class name of the providerpublic CredentialStorage getCredentialStoreProvider(java.lang.String providerClassName)
providerClassName - the class name of the providerpublic CredentialStorage getCredentialStorage(java.lang.String contextName)
providerClassName - the class name of the providerpublic static void storeSessionCredential(Credential cred, java.lang.String credKey)
cred - the credential to be storedcredKey - the key of the credentialpublic static Credential fetchSessionCredential(java.lang.String credKey) throws CredentialNotFoundException
credKey - the credential keyCredentialNotFoundException - if the credential for the given key
cannot be foundpublic static void checkSerializable(java.lang.String className,
java.lang.String methodName,
Credential cred,
java.lang.String credKey)
className - Class Name where this check is mademethodName - Method Name where this check is madecred - Credential to be checkedcredKey - Identifier for the credential