codec.pkcs12
Class CRLBag

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

public class CRLBag
extends ASN1Sequence
implements Serializable

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

 CRLBag  ::= SEQUENCE {
   crlId       BAG-TYPE.&id ({CRLTypes}),
   crlValue    [0] EXPLICIT BAG-TYPE.&Type ({CRLTypes}{@crlId})
 }
 
 x509CRL BAG-TYPE::=
        {OCTET STRING IDENTIFIED BY {RCL Types 1}} -- DER encoded X.509 certificate stored in OCTET STRING
        
 CRLTypes BAG-TYPE::={
        x509CRL|
        ...                                        -- For future extensions
 
 

Version:
"$Id: CRLBag.java,v 1.3 2003/01/28 04:46:05 jpeters Exp $"
Author:
Michele Boivin
See Also:
Serialized Form

Field Summary
protected  PKCS12OIDRegistry reg_
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CRLBag()
           
CRLBag(X509Crl crl)
           
 
Method Summary
 void decode(Decoder decoder)
          Decodes this instance.
 ASN1ObjectIdentifier getCrlId()
           
 ASN1Type getCrlValue()
          returns the CRL Value.
 ASN1ObjectIdentifier getOID()
          Returns the OID of this bag type.
 
Methods inherited from class codec.asn1.ASN1Sequence
getTag
 
Methods inherited from class codec.asn1.ASN1AbstractCollection
checkConstraints, 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 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

CRLBag

public CRLBag()

CRLBag

public CRLBag(X509Crl crl)
       throws CRLException
Method Detail

decode

public void decode(Decoder decoder)
            throws ASN1Exception,
                   IOException
Decodes this instance. This method extracts the actual content type from the ASN1OpenType.
Overrides:
decode in class ASN1AbstractCollection
Parameters:
decoder - The Decoder to use.

getCrlId

public ASN1ObjectIdentifier getCrlId()

getCrlValue

public ASN1Type getCrlValue()
returns the CRL Value. In case of an x509 CRL the DER encoded value as an ASN1OctetString.

getOID

public ASN1ObjectIdentifier getOID()
Returns the OID of this bag type.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.