Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1.9)

E56328-01


oracle.security.xmlsec.pii
Class PIISecurity

java.lang.Object
  extended by oracle.security.xmlsec.pii.PIISecurity


public class PIISecurity
extends java.lang.Object
Since:
release specific (what release of product did this appear in)
Version:
$Header: entsec_ldap/java/src/oracle/security/xmlsec/pii/PIISecurity.java st_oam_nihanda_pii_osdt/2 2012/05/28 07:59:26 nihanda Exp $

Constructor Summary
PIISecurity()
           

 

Method Summary
static java.lang.String decrypt(java.lang.String ciphertext, char[] password, java.lang.String pbkdfAlgo, java.lang.String pbkdfSalt, int pbkdfIteration, int keySize, java.lang.String encAlg)
          Converts cipher text string to plain text using password based key derivation function (PBKDF2).
static java.lang.String decrypt(java.lang.String ciphertext, javax.crypto.SecretKey key, java.lang.String encAlg)
          Converts cipher text string to plain text using key derived from password based key derivation function (PBKDF2).
static java.lang.String encrypt(java.lang.String plaintext, char[] password, java.lang.String pbkdfAlgo, java.lang.String pbkdfSalt, int pbkdfIteration, int keySize, java.lang.String encAlg)
          Converts plain text string to cipher text using password based key derivation function (PBKDF2).
static java.lang.String encrypt(java.lang.String plaintext, javax.crypto.SecretKey key, java.lang.String encAlg)
          Converts plain text string to cipher text using key derived from password based key derivation function (PBKDF2).

 

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

 

Constructor Detail

PIISecurity

public PIISecurity()

Method Detail

encrypt

public static java.lang.String encrypt(java.lang.String plaintext,
                                       char[] password,
                                       java.lang.String pbkdfAlgo,
                                       java.lang.String pbkdfSalt,
                                       int pbkdfIteration,
                                       int keySize,
                                       java.lang.String encAlg)
Converts plain text string to cipher text using password based key derivation function (PBKDF2).
Parameters:
plaintext - text to encrypt
password - password for key derivation
pbkdfAlgo - key derivation algorithm which should be PBKDF2
pbkdfSalt - non-null and non-empty salt for key derivation
pbkdfIteration - iteration count for key derivation
keySize - size of key for key derivation
encAlg - data encryption algorithm. it should be in the form: "algorithm/mode/padding" for ex. AES/CBC/PKCS5Padding
Returns:
encrypted text

encrypt

public static java.lang.String encrypt(java.lang.String plaintext,
                                       javax.crypto.SecretKey key,
                                       java.lang.String encAlg)
Converts plain text string to cipher text using key derived from password based key derivation function (PBKDF2).
Parameters:
plaintext - text to encrypt
key - password based key derived using PBKDF2
encAlg - data encryption algorithm. it should be in the form: "algorithm/mode/padding" for ex. AES/CBC/PKCS5Padding
Returns:
encrypted text

decrypt

public static java.lang.String decrypt(java.lang.String ciphertext,
                                       char[] password,
                                       java.lang.String pbkdfAlgo,
                                       java.lang.String pbkdfSalt,
                                       int pbkdfIteration,
                                       int keySize,
                                       java.lang.String encAlg)
Converts cipher text string to plain text using password based key derivation function (PBKDF2).
Parameters:
ciphertext - text to decrypt
password - password for key derivation
pbkdfAlgo - key derivation algorithm which should be PBKDF2
pbkdfSalt - non-null and non-empty salt for key derivation
pbkdfIteration - iteration count for key derivation
keySize - size of key for key derivation
encAlg - data encryption algorithm. it should be in the form: "algorithm/mode/padding" for ex. AES/CBC/PKCS5Padding
Returns:
plain text

decrypt

public static java.lang.String decrypt(java.lang.String ciphertext,
                                       javax.crypto.SecretKey key,
                                       java.lang.String encAlg)
Converts cipher text string to plain text using key derived from password based key derivation function (PBKDF2).
Parameters:
ciphertext - text to decrypt
key - password based key derived from PBKDF2
encAlg - data encryption algorithm. it should be in the form: "algorithm/mode/padding" for ex. AES/CBC/PKCS5Padding
Returns:
plain text

Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1.9)

E56328-01


Copyright © 2005, 2015 , Oracle. All rights reserved.