|
Oracle Security Developer Tools Crypto Java API Reference 11g (11.1.1) E10668-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.PasswordProtectedObject
Deprecated. No replacement.
public class PasswordProtectedObject
This class implements PKCS5PBE password-based encryption of objects. It can be used with any Serializable object.
Field Summary | |
---|---|
protected byte[] |
encryptedData Deprecated. |
protected java.io.Serializable |
obj Deprecated. |
protected PKCS5 |
pkcs5 Deprecated. |
protected PKCS5PBE |
pkcs5pbe Deprecated. |
Constructor Summary | |
---|---|
PasswordProtectedObject() Deprecated. |
|
PasswordProtectedObject(int mode) Deprecated. Same using the default RandomBitsSource. |
|
PasswordProtectedObject(int mode, RandomBitsSource rbs) Deprecated. Create a new PasswordProtectedObject with the given mode (from PKCS5PBE) using a RandomBitsSource. |
|
PasswordProtectedObject(PKCS5PBE p) Deprecated. Create a new PasswordProtectedObject with the given PKCS5PBE cipher. |
|
PasswordProtectedObject(java.io.Serializable o) Deprecated. |
|
PasswordProtectedObject(java.io.Serializable o, int mode) Deprecated. |
|
PasswordProtectedObject(java.io.Serializable o, int mode, RandomBitsSource rbs) Deprecated. |
|
PasswordProtectedObject(java.io.Serializable o, PKCS5PBE p) Deprecated. Create a new PasswordProtectedObject with the given cipher and encrypt the given object. |
|
PasswordProtectedObject(java.io.Serializable o, RandomBitsSource rbs) Deprecated. |
Method Summary | |
---|---|
java.lang.Object |
decrypt() Deprecated. |
void |
encrypt() Deprecated. |
PKCS5PBE |
getPKCS5PBE() Deprecated. |
void |
setObject(java.io.Serializable o) Deprecated. |
void |
setPassword(java.lang.String pass) Deprecated. Set the password on the cipher (this needs to be done before encryption or decryption). |
void |
setPKCS5PBE(PKCS5PBE p) Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PKCS5PBE pkcs5pbe
protected PKCS5 pkcs5
protected byte[] encryptedData
protected transient java.io.Serializable obj
Constructor Detail |
---|
public PasswordProtectedObject()
public PasswordProtectedObject(PKCS5PBE p)
public PasswordProtectedObject(int mode, RandomBitsSource rbs)
public PasswordProtectedObject(int mode)
public PasswordProtectedObject(java.io.Serializable o, PKCS5PBE 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 setPKCS5PBE(PKCS5PBE p)
public PKCS5PBE getPKCS5PBE()
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 11g (11.1.1) E10668-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |