Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

oracle.adfmf.framework.api
Class GeneratedPassword

Object
  extended by oracle.adfmf.framework.api.GeneratedPassword

public class GeneratedPassword
extends Object

GeneratedPassword is a utility class for producing random passwords. These passwords will be persisted in the credential store so they can be retrieved in later sessions.


Constructor Summary
GeneratedPassword()
           
 
Method Summary
static void clearPassword(String key)
          Clear the password associated with the given key.
static char[] getPassword(String key)
          Get the password associated with the key.
static char[] setPassword(String key, String seed)
          Create a password associated with the given key.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedPassword

public GeneratedPassword()
Method Detail

getPassword

public static final char[] getPassword(String key)
Get the password associated with the key.

Parameters:
key - is a unique id associated with the password lookup.
Returns:
the stored password for the given key or null if one can not be found.

setPassword

public static final char[] setPassword(String key,
                                       String seed)
Create a password associated with the given key. Since setPassword is not idempotent, subsequent calls to setPassword with the same key and seed will not generate the same password.

Parameters:
key - is a unique id associated with the password lookup.
seed - will be used in conjunction with an internally generated seed for generating the random password. If the seed is null then the system will create a pseudorandom seed on behalf of the caller.

clearPassword

public static final void clearPassword(String key)
Clear the password associated with the given key.

Parameters:
key - is a unique id associated with the password lookup.

Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

Copyright © 2014 Oracle. All Rights Reserved.