codec.pkcs12
Class SecretBag

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--codec.asn1.ASN1AbstractCollection
                          |
                          +--codec.asn1.ASN1Sequence
                                |
                                +--codec.pkcs12.SecretBag
All Implemented Interfaces:
ASN1Collection, ASN1RegisteredType, ASN1Type, Cloneable, Collection, Externalizable, List, Serializable

public class SecretBag
extends ASN1Sequence
implements ASN1RegisteredType, Serializable

This class represents a SecretBag as defined in PKCS#12. The ASN.1 definition of this structure is

 SecretBag  ::= SEQUENCE {
   secretTypeId   BAG-TYPE.&id ({SecretTypes}),
   secretValue    [0] EXPLICIT BAG-TYPE.&Type ({SecretTypes}{@SecretId})
 }
 
 SecretTypes BAG-TYPE::={
         ... -- For future extensions
 
 

Version:
"$Id: SecretBag.java,v 1.4 2005/03/22 14:18:29 flautens Exp $"
Author:
Michele Boivin
See Also:
Serialized Form

Field Summary
protected  PKCS12OIDRegistry reg_
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SecretBag()
           
 
Method Summary
 ASN1ObjectIdentifier getOID()
          Returns the OID for this structure.
 ASN1ObjectIdentifier getSecretOID()
           
 ASN1Type getSecretValue()
           
 
Methods inherited from class codec.asn1.ASN1Sequence
getTag
 
Methods inherited from class codec.asn1.ASN1AbstractCollection
checkConstraints, decode, encode, getCollection, getConstraint, getTagClass, getValue, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, toString, writeExternal
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface codec.asn1.ASN1Type
checkConstraints, decode, encode, getConstraint, getTag, getTagClass, getValue, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

reg_

protected PKCS12OIDRegistry reg_
Constructor Detail

SecretBag

public SecretBag()
Method Detail

getOID

public ASN1ObjectIdentifier getOID()
Returns the OID for this structure.
Specified by:
getOID in interface ASN1RegisteredType
Returns:
the OID

getSecretOID

public ASN1ObjectIdentifier getSecretOID()

getSecretValue

public ASN1Type getSecretValue()


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.