Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.model.security
Class CredentialsCache

java.lang.Object
  extended by oracle.adfnmc.model.security.CredentialsCache

public class CredentialsCache
extends java.lang.Object

Manages the cache of user credentials for authentication services.

Author:
PARACHAN

Field Summary
static java.lang.Class CLASS_INSTANCE
           
static int PASSWORDTYPE_ENCRYPTED
           
static int PASSWORDTYPE_HASHED
           
static java.lang.String REPLAY_TYPE_ID
           
static java.lang.String REPLAY_TYPE_NAME
           
 
Method Summary
 java.lang.String getCurrentUser()
           
 java.lang.String getEncryptedPassword(java.lang.String replayType, java.lang.String userId)
           
 java.lang.String getHashedPassword(java.lang.String replayType, java.lang.String userId)
           
static CredentialsCache getInstance()
           
 java.lang.String getPublicKey(java.lang.String serviceId)
          Get the public key associated with a given service ID.
 java.lang.String getPublicKeyByReplayType(java.lang.String replayTypeName)
          Get the public key associated with a given replay type name.
 void init()
           
 void init(boolean force)
           
 void init(int initType)
           
 void updateOrInsertCredentials(java.lang.String replayType, java.lang.String userId, java.lang.String hashedPassword, java.lang.String encryptedPassword)
          Update the passwords for the specified user ID and replay type.
 void updateOrInsertPublicKey(java.lang.String replayTypeName, java.lang.String serviceId, java.lang.String publicKey)
          Update the public key, the specified service ID for the given replay type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

PASSWORDTYPE_HASHED

public static final int PASSWORDTYPE_HASHED
See Also:
Constant Field Values

PASSWORDTYPE_ENCRYPTED

public static final int PASSWORDTYPE_ENCRYPTED
See Also:
Constant Field Values

REPLAY_TYPE_NAME

public static final java.lang.String REPLAY_TYPE_NAME
See Also:
Constant Field Values

REPLAY_TYPE_ID

public static final java.lang.String REPLAY_TYPE_ID
See Also:
Constant Field Values
Method Detail

getInstance

public static CredentialsCache getInstance()

getPublicKey

public java.lang.String getPublicKey(java.lang.String serviceId)
Get the public key associated with a given service ID. The service ID can be any unique identifier, but is usually either the name or full URL of the server hosting the service.

Parameters:
serviceId - - Unique identifier of service endpoint
Returns:
Public key associated with service ID; null if not found in cache.

getPublicKeyByReplayType

public java.lang.String getPublicKeyByReplayType(java.lang.String replayTypeName)
Get the public key associated with a given replay type name.

Parameters:
replayTypeName - - Unique identifier of a replay Type
Returns:
Public key associated with the replay Type; null if not found in cache.

updateOrInsertPublicKey

public void updateOrInsertPublicKey(java.lang.String replayTypeName,
                                    java.lang.String serviceId,
                                    java.lang.String publicKey)
Update the public key, the specified service ID for the given replay type. If an entry does not exist for the given service ID, insert a new entry for it instead.

Parameters:
replayTypeName -
serviceId -
publicKey -

getHashedPassword

public java.lang.String getHashedPassword(java.lang.String replayType,
                                          java.lang.String userId)

getEncryptedPassword

public java.lang.String getEncryptedPassword(java.lang.String replayType,
                                             java.lang.String userId)

updateOrInsertCredentials

public void updateOrInsertCredentials(java.lang.String replayType,
                                      java.lang.String userId,
                                      java.lang.String hashedPassword,
                                      java.lang.String encryptedPassword)
Update the passwords for the specified user ID and replay type. If no existing entry is found for the specified user/replay combination, a new row is inserted instead.

Parameters:
replayType -
userId -
hashedPassword -
encryptedPassword - TODO

init

public void init()

init

public void init(int initType)

init

public void init(boolean force)

getCurrentUser

public java.lang.String getCurrentUser()

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.