|
Oracle Security Developer Tools Crypto Java API Reference 10g Release 2 (10.1.2.0.2) B15565-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.PasswordProtectedObject
This class implements PKCS5 password-based encryption of objects. It can be used with any Serializable object.
Field Summary | |
protected byte[] |
encryptedData |
protected java.io.Serializable |
obj |
protected PKCS5 |
pkcs5 |
Constructor Summary | |
PasswordProtectedObject() |
|
PasswordProtectedObject(int mode) Same using the default RandomBitsSource. |
|
PasswordProtectedObject(int mode, RandomBitsSource rbs) Create a new PasswordProtectedObject with the given mode (from PKCS5) using a RandomBitsSource. |
|
PasswordProtectedObject(PKCS5 p) Create a new PasswordProtectedObject with the given PKCS5 cipher. |
|
PasswordProtectedObject(java.io.Serializable o) |
|
PasswordProtectedObject(java.io.Serializable o, int mode) |
|
PasswordProtectedObject(java.io.Serializable o, int mode, RandomBitsSource rbs) |
|
PasswordProtectedObject(java.io.Serializable o, PKCS5 p) Create a new PasswordProtectedObject with the given cipher and encrypt the given object. |
|
PasswordProtectedObject(java.io.Serializable o, RandomBitsSource rbs) |
Method Summary | |
java.lang.Object |
decrypt() |
void |
encrypt() |
PKCS5 |
getPKCS5() |
void |
setObject(java.io.Serializable o) |
void |
setPassword(java.lang.String pass) Set the password on the cipher (this needs to be done before encryption or decryption). |
void |
setPKCS5(PKCS5 p) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PKCS5 pkcs5
protected byte[] encryptedData
protected transient java.io.Serializable obj
Constructor Detail |
public PasswordProtectedObject()
public PasswordProtectedObject(PKCS5 p)
public PasswordProtectedObject(int mode, RandomBitsSource rbs)
public PasswordProtectedObject(int mode)
public PasswordProtectedObject(java.io.Serializable o, PKCS5 p)
public PasswordProtectedObject(java.io.Serializable o, int mode, RandomBitsSource rbs)
public PasswordProtectedObject(java.io.Serializable o, int mode)
public PasswordProtectedObject(java.io.Serializable o, RandomBitsSource rbs)
public PasswordProtectedObject(java.io.Serializable o)
Method Detail |
public void setPKCS5(PKCS5 p)
public PKCS5 getPKCS5()
public void setPassword(java.lang.String pass)
public void setObject(java.io.Serializable o)
public void encrypt() throws java.io.IOException
java.io.IOException
public java.lang.Object decrypt() throws CipherException, java.io.IOException, java.lang.ClassNotFoundException
CipherException
java.io.IOException
java.lang.ClassNotFoundException
|
Oracle Security Developer Tools Crypto Java API Reference 10g Release 2 (10.1.2.0.2) B15565-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |