Skip navigation links

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

E10674-03


oracle.security.crypto.cert
Class PKCS12SafeContentsBag

java.lang.Object
  extended by oracle.security.crypto.cert.PKCS12Bag
      extended by oracle.security.crypto.cert.PKCS12SafeContentsBag

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class PKCS12SafeContentsBag
extends PKCS12Bag

A PKCS #12 safe contents bag, which contains a sequence of PKCS12Bags.

See Also:
Serialized Form

Constructor Summary
PKCS12SafeContentsBag()
          Creates a new empty instance.
PKCS12SafeContentsBag(PKCS12Safe parent)
           
PKCS12SafeContentsBag(PKCS12Safe parent, oracle.security.crypto.asn1.ASN1Sequence s)
           
PKCS12SafeContentsBag(PKCS12Safe parent, java.io.InputStream is)
           
PKCS12SafeContentsBag(PKCS12Safe parent, java.util.List<PKCS12Bag> bags)
           
PKCS12SafeContentsBag(PKCS12Safe parent, java.util.Vector<PKCS12Bag> bags)
          Deprecated. Use PKCS12SafeContentsBag(PKCS12Safe, List)

 

Method Summary
 void addBag(PKCS12Bag b)
           
 java.util.Vector<PKCS12Bag> getBags()
          Deprecated. Use getBagsAsList()
 java.util.ArrayList<PKCS12Bag> getBagsAsList()
          Returns the sequence of PKCS12Bags contained in this safeContents bag.
 void input(oracle.security.crypto.asn1.ASN1Sequence s)
          Reconstructs this object from its representation as an ASN.1 sequence.
 void input(java.io.InputStream is)
          Reconstructs this object by reading its DER encoding from the specified input stream.
 int length()
          Returns the length of this object's DER encoding.
 void output(java.io.OutputStream os)
          Outputs the DER encoding of this object to the specified output stream.
 void setBags(java.util.List<PKCS12Bag> bags)
          Sets the sequence of PKCS12Bags for this safeContents bag.
 void setBags(java.util.Vector<PKCS12Bag> bags)
          Deprecated. Use setBags(List)
 java.lang.String toString()
          Returns a string representation of this object.

 

Methods inherited from class oracle.security.crypto.cert.PKCS12Bag
getFriendlyName, getLocalKeyID, inputBag, outputAttrsASN1, readExternal, setFriendlyName, setLocalKeyID, writeExternal

 

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

 

Constructor Detail

PKCS12SafeContentsBag

public PKCS12SafeContentsBag()
Creates a new empty instance. This constructor is to be used with serialization or with the input method.

PKCS12SafeContentsBag

public PKCS12SafeContentsBag(PKCS12Safe parent)

PKCS12SafeContentsBag

public PKCS12SafeContentsBag(PKCS12Safe parent,
                             java.util.Vector<PKCS12Bag> bags)
Deprecated. Use PKCS12SafeContentsBag(PKCS12Safe, List)

PKCS12SafeContentsBag

public PKCS12SafeContentsBag(PKCS12Safe parent,
                             java.util.List<PKCS12Bag> bags)

PKCS12SafeContentsBag

public PKCS12SafeContentsBag(PKCS12Safe parent,
                             java.io.InputStream is)
                      throws java.io.IOException
Throws:
java.io.IOException

PKCS12SafeContentsBag

public PKCS12SafeContentsBag(PKCS12Safe parent,
                             oracle.security.crypto.asn1.ASN1Sequence s)
                      throws java.io.IOException
Throws:
java.io.IOException

Method Detail

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Reconstructs this object by reading its DER encoding from the specified input stream.
Parameters:
is - the input stream from which this object will be read
Throws:
java.io.IOException

input

public void input(oracle.security.crypto.asn1.ASN1Sequence s)
           throws java.io.IOException
Reconstructs this object from its representation as an ASN.1 sequence.
Parameters:
s - the ASN.1 sequence representation of this object
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Outputs the DER encoding of this object to the specified output stream.
Parameters:
os - the output stream to which the object will be written
Throws:
java.io.IOException

length

public int length()
Returns the length of this object's DER encoding.
Returns:
the length of this object's DER encoding

getBags

public java.util.Vector<PKCS12Bag> getBags()
Deprecated. Use getBagsAsList()
Returns the sequence of PKCS12Bags contained in this safeContents bag.
Returns:
a vector, each element of which is an instance of PKCS12Bag.

getBagsAsList

public java.util.ArrayList<PKCS12Bag> getBagsAsList()
Returns the sequence of PKCS12Bags contained in this safeContents bag.
Returns:
an ArrayList, each element of which is an instance of PKCS12Bag.

setBags

public void setBags(java.util.Vector<PKCS12Bag> bags)
Deprecated. Use setBags(List)
Sets the sequence of PKCS12Bags for this safeContents bag.
Parameters:
b - A vector, each element of which must be an instance of PKCS12Bag.

setBags

public void setBags(java.util.List<PKCS12Bag> bags)
Sets the sequence of PKCS12Bags for this safeContents bag.
Parameters:
b - A List, each element of which must be an instance of PKCS12Bag.

addBag

public void addBag(PKCS12Bag b)

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this object

Skip navigation links

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

E10674-03


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