Skip navigation links

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

E10668-04


oracle.security.crypto.core
Class PasswordProtectedObject

java.lang.Object
  extended by oracle.security.crypto.core.PasswordProtectedObject

All Implemented Interfaces:
java.io.Serializable

Deprecated. No replacement.

public class PasswordProtectedObject
extends java.lang.Object
implements java.io.Serializable

This class implements PKCS5PBE password-based encryption of objects. It can be used with any Serializable object.

See Also:
Serialized Form

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

pkcs5pbe

protected PKCS5PBE pkcs5pbe
Deprecated. 

pkcs5

protected PKCS5 pkcs5
Deprecated. 

encryptedData

protected byte[] encryptedData
Deprecated. 

obj

protected transient java.io.Serializable obj
Deprecated. 

Constructor Detail

PasswordProtectedObject

public PasswordProtectedObject()
Deprecated. 

PasswordProtectedObject

public PasswordProtectedObject(PKCS5PBE p)
Deprecated. 
Create a new PasswordProtectedObject with the given PKCS5PBE cipher.

PasswordProtectedObject

public PasswordProtectedObject(int mode,
                               RandomBitsSource rbs)
Deprecated. 
Create a new PasswordProtectedObject with the given mode (from PKCS5PBE) using a RandomBitsSource.

PasswordProtectedObject

public PasswordProtectedObject(int mode)
Deprecated. 
Same using the default RandomBitsSource.

PasswordProtectedObject

public PasswordProtectedObject(java.io.Serializable o,
                               PKCS5PBE p)
Deprecated. 
Create a new PasswordProtectedObject with the given cipher and encrypt the given object.

PasswordProtectedObject

public PasswordProtectedObject(java.io.Serializable o,
                               int mode,
                               RandomBitsSource rbs)
Deprecated. 

PasswordProtectedObject

public PasswordProtectedObject(java.io.Serializable o,
                               int mode)
Deprecated. 

PasswordProtectedObject

public PasswordProtectedObject(java.io.Serializable o,
                               RandomBitsSource rbs)
Deprecated. 

PasswordProtectedObject

public PasswordProtectedObject(java.io.Serializable o)
Deprecated. 

Method Detail

setPKCS5PBE

public void setPKCS5PBE(PKCS5PBE p)
Deprecated. 

getPKCS5PBE

public PKCS5PBE getPKCS5PBE()
Deprecated. 

setPassword

public void setPassword(java.lang.String pass)
Deprecated. 
Set the password on the cipher (this needs to be done before encryption or decryption).

setObject

public void setObject(java.io.Serializable o)
Deprecated. 

encrypt

public void encrypt()
             throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

decrypt

public java.lang.Object decrypt()
                         throws CipherException,
                                java.io.IOException,
                                java.lang.ClassNotFoundException
Deprecated. 
Throws:
CipherException
java.io.IOException
java.lang.ClassNotFoundException

Skip navigation links

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

E10668-04


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