Skip navigation links

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

E15864-02


com.bharosa.vcrypt.auth.keypad
Class KeyPadUtil

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


public class KeyPadUtil
extends java.lang.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 java.lang.String authentiPadMessageResource
           
static java.lang.String authentiPadResource
           

 

Constructor Summary
KeyPadUtil()
           

 

Method Summary
static java.lang.String assignCaptionTextToUser()
          Deprecated.  
static java.lang.String assignCaptionTextToUser(java.util.Locale aLocale)
           
protected static java.lang.String assignCaptionTextToUser(java.lang.String[] word2List, java.lang.String[] word1List)
           
protected static java.lang.String assignCaptionTextToUser(java.lang.String word2ListProp, java.lang.String word1ListProp, java.util.Locale aLocale)
           
static java.lang.String assignImageToUser()
           
static java.lang.String assignImageToUser(java.lang.String imageDirsProp)
           
static void createEncryptedKeyPad(AuthentiPad keypad)
           
static void createEncryptedKeyPad(AuthentiPad keypad, AuthentiConfig authConfig)
           
static java.lang.String decodeKeyPadCode(AuthentiKey authKey, AuthentiConfig authConfig, java.lang.String vCryptPinData)
          This method decodes the user input and returns the raw data entered.
static java.lang.String decodeKeyPadCode(AuthentiPad authPad, java.lang.String vCryptPinData)
          This method decodes the user input and returns the raw data entered.
static java.io.OutputStream encryptImageToStream(AuthentiPad keyPad, AuthentiConfig authConfig, java.io.OutputStream os)
           
static java.io.OutputStream encryptImageToStream(AuthentiPad keyPad, java.io.OutputStream os)
           
static java.io.OutputStream encryptImageToStream(java.io.File imageFile, java.lang.String outputType, java.io.OutputStream os)
           
static java.lang.String getDefaultCaption()
           
static java.lang.String getDefaultCaption(java.util.Locale aLocale)
           
static java.lang.String getDefaultImage()
           
static java.awt.image.BufferedImage getEncryptedBufferedImage(AuthentiPad keypad)
           
static java.awt.image.BufferedImage getEncryptedBufferedImage(AuthentiPad keypad, AuthentiConfig authConfig)
           
static java.io.File getFile(java.lang.String fileName)
          This method gets the File object for the fileName/filePath.
static KeyDetail getKeyDetail(AuthentiKey authKey, AuthentiConfig authConfig, int index)
           
static java.lang.String getSkinDir(java.lang.String skinDirList)
           
static java.util.TimeZone getTimezone(java.lang.String offsetStr)
           
static java.util.Vector getVectorData(java.lang.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 java.lang.String authentiPadResource

authentiPadMessageResource

public static final java.lang.String authentiPadMessageResource

Constructor Detail

KeyPadUtil

public KeyPadUtil()

Method Detail

getFile

public static java.io.File getFile(java.lang.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 java.awt.image.BufferedImage getEncryptedBufferedImage(AuthentiPad keypad)
                                                              throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

getEncryptedBufferedImage

public static java.awt.image.BufferedImage getEncryptedBufferedImage(AuthentiPad keypad,
                                                                     AuthentiConfig authConfig)
                                                              throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

encryptImageToStream

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

encryptImageToStream

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

encryptImageToStream

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

decodeKeyPadCode

public static java.lang.String decodeKeyPadCode(AuthentiPad authPad,
                                                java.lang.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 java.lang.String decodeKeyPadCode(AuthentiKey authKey,
                                                AuthentiConfig authConfig,
                                                java.lang.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 java.lang.String assignCaptionTextToUser(java.util.Locale aLocale)

assignCaptionTextToUser

public static java.lang.String assignCaptionTextToUser()
Deprecated. 

assignCaptionTextToUser

protected static java.lang.String assignCaptionTextToUser(java.lang.String word2ListProp,
                                                          java.lang.String word1ListProp,
                                                          java.util.Locale aLocale)

assignCaptionTextToUser

protected static java.lang.String assignCaptionTextToUser(java.lang.String[] word2List,
                                                          java.lang.String[] word1List)

assignImageToUser

public static java.lang.String assignImageToUser()

assignImageToUser

public static java.lang.String assignImageToUser(java.lang.String imageDirsProp)

getVectorData

public static java.util.Vector getVectorData(java.lang.String stringList)

getSkinDir

public static java.lang.String getSkinDir(java.lang.String skinDirList)
                                   throws ObjectNotCreatedException
Throws:
ObjectNotCreatedException

isUseDefaultImage

public static boolean isUseDefaultImage()

isUseDefaultCaption

public static boolean isUseDefaultCaption()

getDefaultImage

public static java.lang.String getDefaultImage()

getDefaultCaption

public static java.lang.String getDefaultCaption()

getDefaultCaption

public static java.lang.String getDefaultCaption(java.util.Locale aLocale)

getTimezone

public static java.util.TimeZone getTimezone(java.lang.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
Release 11g (11.1.1)

E15864-02


Copyright © 2011, Oracle. All rights reserved.