Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Adaptive Access Manager
11g Release 2 (11.1.2)

E27208-03


com.bharosa.vcrypt.auth.keypad
Class KeyPadUtil

java.lang.Object
  extended by com.bharosa.vcrypt.auth.keypad.KeyPadUtil


public class KeyPadUtil
extends Object

This class has the utility method to get the keypad and also to decode it. All methods in this class are static methods.


Field Summary
static String authentiPadMessageResource
           
static String authentiPadResource
           

 

Constructor Summary
KeyPadUtil()
           

 

Method Summary
static String assignCaptionTextToUser()
          Deprecated.  
static String assignCaptionTextToUser(Locale aLocale)
           
protected static String assignCaptionTextToUser(String[] word2List, String[] word1List)
           
protected static String assignCaptionTextToUser(String word2ListProp, String word1ListProp, Locale aLocale)
           
static String assignImageToUser()
           
static String assignImageToUser(String imageDirsProp)
           
static void createEncryptedKeyPad(AuthentiPad keypad)
           
static void createEncryptedKeyPad(AuthentiPad keypad, AuthentiConfig authConfig)
           
static String decodeKeyPadCode(AuthentiKey authKey, AuthentiConfig authConfig, String vCryptPinData)
          This method decodes the user input and returns the raw data entered.
static String decodeKeyPadCode(AuthentiPad authPad, String vCryptPinData)
          This method decodes the user input and returns the raw data entered.
static OutputStream encryptImageToStream(AuthentiPad keyPad, AuthentiConfig authConfig, OutputStream os)
           
static OutputStream encryptImageToStream(AuthentiPad keyPad, OutputStream os)
           
static OutputStream encryptImageToStream(File imageFile, String outputType, OutputStream os)
           
static String getDefaultCaption()
           
static String getDefaultCaption(Locale aLocale)
           
static String getDefaultImage()
           
static BufferedImage getEncryptedBufferedImage(AuthentiPad keypad)
           
static BufferedImage getEncryptedBufferedImage(AuthentiPad keypad, AuthentiConfig authConfig)
           
static File getFile(String fileName)
          This method gets the File object for the fileName/filePath.
static KeyDetail getKeyDetail(AuthentiKey authKey, AuthentiConfig authConfig, int index)
           
static String getSkinDir(String skinDirList)
           
static TimeZone getTimezone(String offsetStr)
           
static Vector getVectorData(String stringList)
           
static boolean isUseDefaultCaption()
           
static boolean isUseDefaultImage()
           

 

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

 

Field Detail

authentiPadResource

public static final String authentiPadResource

authentiPadMessageResource

public static final String authentiPadMessageResource

Constructor Detail

KeyPadUtil

public KeyPadUtil()

Method Detail

getFile

public static File getFile(String fileName)
This method gets the File object for the fileName/filePath. The method will try to find the file assuming it is an absolute path. If it fails, then it will look in the class path to get absolute file path.
Parameters:
fileName - The file name. It could contain the part of the file path also.
Returns:
a File object if the file is found. Else it will return a null object.

createEncryptedKeyPad

public static void createEncryptedKeyPad(AuthentiPad keypad)
                                  throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

createEncryptedKeyPad

public static void createEncryptedKeyPad(AuthentiPad keypad,
                                         AuthentiConfig authConfig)
                                  throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

getEncryptedBufferedImage

public static BufferedImage getEncryptedBufferedImage(AuthentiPad keypad)
                                               throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

getEncryptedBufferedImage

public static BufferedImage getEncryptedBufferedImage(AuthentiPad keypad,
                                                      AuthentiConfig authConfig)
                                               throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

encryptImageToStream

public static OutputStream encryptImageToStream(AuthentiPad keyPad,
                                                OutputStream os)
                                         throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

encryptImageToStream

public static OutputStream encryptImageToStream(AuthentiPad keyPad,
                                                AuthentiConfig authConfig,
                                                OutputStream os)
                                         throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

encryptImageToStream

public static OutputStream encryptImageToStream(File imageFile,
                                                String outputType,
                                                OutputStream os)
                                         throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

decodeKeyPadCode

public static String decodeKeyPadCode(AuthentiPad authPad,
                                      String vCryptPinData)
This method decodes the user input and returns the raw data entered.
Parameters:
authPad - a AuthentiPad which was presented to the user.
vCryptPinData - The encrypted data the user entered.
Returns:
The raw translated data entered by the user

decodeKeyPadCode

public static String decodeKeyPadCode(AuthentiKey authKey,
                                      AuthentiConfig authConfig,
                                      String vCryptPinData)
This method decodes the user input and returns the raw data entered.
Parameters:
authKey - an AuthentiKey which contains the required information to decode the AuthentiPad displayed to the user.
vCryptPinData - The encrypted data the user entered.
Returns:
The raw translated data entered by the user

assignCaptionTextToUser

public static String assignCaptionTextToUser(Locale aLocale)

assignCaptionTextToUser

public static String assignCaptionTextToUser()
Deprecated. 

assignCaptionTextToUser

protected static String assignCaptionTextToUser(String word2ListProp,
                                                String word1ListProp,
                                                Locale aLocale)

assignCaptionTextToUser

protected static String assignCaptionTextToUser(String[] word2List,
                                                String[] word1List)

assignImageToUser

public static String assignImageToUser()

assignImageToUser

public static String assignImageToUser(String imageDirsProp)

getVectorData

public static Vector getVectorData(String stringList)

getSkinDir

public static String getSkinDir(String skinDirList)
                         throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

isUseDefaultImage

public static boolean isUseDefaultImage()

isUseDefaultCaption

public static boolean isUseDefaultCaption()

getDefaultImage

public static String getDefaultImage()

getDefaultCaption

public static String getDefaultCaption()

getDefaultCaption

public static String getDefaultCaption(Locale aLocale)

getTimezone

public static TimeZone getTimezone(String offsetStr)

getKeyDetail

public static KeyDetail getKeyDetail(AuthentiKey authKey,
                                     AuthentiConfig authConfig,
                                     int index)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Adaptive Access Manager
11g Release 2 (11.1.2)

E27208-03


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