codec.x509
Class CRLEntry

java.lang.Object
  |
  +--java.security.cert.X509CRLEntry
        |
        +--codec.x509.CRLEntry
All Implemented Interfaces:
ASN1Type, Externalizable, Serializable, X509Extension

public class CRLEntry
extends X509CRLEntry
implements ASN1Type, Externalizable

a CRLEntry is an entry in an X509Crl. It consists of a serial number, a date representation and optional extensions

 SEQUENCE  {
     userCertificate         CertificateSerialNumber,
     revocationDate          Time,
     crlEntryExtensions      Extensions OPTIONAL
                              -- if present, must be v2
  }
 
Creation date: (10.09.99 19:03:34)

Author:
Markus Tak
See Also:
Serialized Form

Constructor Summary
CRLEntry()
          standard constructor; initializes the ASN.1 structure
CRLEntry(BigInteger nr, Calendar wann)
          constructor for a specific CRL entry
 
Method Summary
 void addExtension(X509Extension ex)
          adds an extension to this CRLEntry
 void checkConstraints()
          for interface codec.asn1.ASN1Type
 void decode(Decoder dec)
          for interface codec.asn1.ASN1Type
 void encode(Encoder enc)
          for interface codec.asn1.ASN1Type
 Constraint getConstraint()
          for interface codec.asn1.ASN1Type
 Set getCriticalExtensionOIDs()
          implemented abstract method from java.security.cert.X509CRLEntry
 byte[] getEncoded()
          implemented abstract method from java.security.cert.X509CRLEntry
 Collection getExtensions()
          implemented abstract method from java.security.cert.X509CRLEntry
 byte[] getExtensionValue(String oid)
          implemented abstract method from java.security.cert.X509CRLEntry
 Set getNonCriticalExtensionOIDs()
          implemented abstract method from java.security.cert.X509CRLEntry
 Date getRevocationDate()
          implemented abstract method from java.security.cert.X509CRLEntry
 BigInteger getSerialNumber()
          implemented abstract method from java.security.cert.X509CRLEntry
 int getTag()
          for interface codec.asn1.ASN1Type
 int getTagClass()
          for interface codec.asn1.ASN1Type
 Object getValue()
          for interface codec.asn1.ASN1Type
 boolean hasExtensions()
          implemented abstract method from java.security.cert.X509CRLEntry
 boolean hasUnsupportedCriticalExtension()
          implemented abstract method from java.security.cert.X509CRLEntry
 boolean isExplicit()
          for interface codec.asn1.ASN1Type
 boolean isOptional()
          for interface codec.asn1.ASN1Type
 boolean isType(int eins, int zwei)
          for interface codec.asn1.ASN1Type
 void readExternal(ObjectInput s)
           
 void setConstraint(Constraint c)
          for interface codec.asn1.ASN1Type
 void setExplicit(boolean ex)
          for interface codec.asn1.ASN1Type
 void setOptional(boolean opt)
          for interface codec.asn1.ASN1Type
 void setRevocationDate(Calendar cal)
          set the date of this revocation entry
 void setRevocationDate(Date date)
          set the date of this revocation entry
 void setSerialNumber(BigInteger nsnr)
          set the serial number date of the certificate to be revoked in this CRL entry.
 void setSerialNumber(int nsnr)
          set the serial number date of the certificate to be revoked in this CRL entry.
 String toString()
          menschl. lesbare Form
 String toString(String offset)
          menschl. lesbare Form
 void writeExternal(ObjectOutput s)
           
 
Methods inherited from class java.security.cert.X509CRLEntry
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CRLEntry

public CRLEntry()
standard constructor; initializes the ASN.1 structure

CRLEntry

public CRLEntry(BigInteger nr,
                Calendar wann)
constructor for a specific CRL entry
Method Detail

setConstraint

public void setConstraint(Constraint c)
for interface codec.asn1.ASN1Type
Specified by:
setConstraint in interface ASN1Type
Following copied from interface: codec.asn1.ASN1Type
Parameters:
o - The constraint to set.

getConstraint

public Constraint getConstraint()
for interface codec.asn1.ASN1Type
Specified by:
getConstraint in interface ASN1Type
Following copied from interface: codec.asn1.ASN1Type
Returns:
The Constraint or null.

addExtension

public void addExtension(X509Extension ex)
adds an extension to this CRLEntry

checkConstraints

public void checkConstraints()
                      throws ConstraintException
for interface codec.asn1.ASN1Type
Specified by:
checkConstraints in interface ASN1Type
Following copied from interface: codec.asn1.ASN1Type
See Also:
Constraint, ConstraintCollection

decode

public void decode(Decoder dec)
            throws ASN1Exception,
                   IOException
for interface codec.asn1.ASN1Type
Specified by:
decode in interface ASN1Type

encode

public void encode(Encoder enc)
            throws ASN1Exception,
                   IOException
for interface codec.asn1.ASN1Type
Specified by:
encode in interface ASN1Type

getCriticalExtensionOIDs

public Set getCriticalExtensionOIDs()
implemented abstract method from java.security.cert.X509CRLEntry
Overrides:
getCriticalExtensionOIDs in class X509CRLEntry

getEncoded

public byte[] getEncoded()
                  throws CRLException
implemented abstract method from java.security.cert.X509CRLEntry
Overrides:
getEncoded in class X509CRLEntry

getExtensions

public Collection getExtensions()
implemented abstract method from java.security.cert.X509CRLEntry

getExtensionValue

public byte[] getExtensionValue(String oid)
implemented abstract method from java.security.cert.X509CRLEntry
Overrides:
getExtensionValue in class X509CRLEntry

getNonCriticalExtensionOIDs

public Set getNonCriticalExtensionOIDs()
implemented abstract method from java.security.cert.X509CRLEntry
Overrides:
getNonCriticalExtensionOIDs in class X509CRLEntry

getRevocationDate

public Date getRevocationDate()
implemented abstract method from java.security.cert.X509CRLEntry
Overrides:
getRevocationDate in class X509CRLEntry

getSerialNumber

public BigInteger getSerialNumber()
implemented abstract method from java.security.cert.X509CRLEntry
Overrides:
getSerialNumber in class X509CRLEntry

getTag

public int getTag()
for interface codec.asn1.ASN1Type
Specified by:
getTag in interface ASN1Type

getTagClass

public int getTagClass()
for interface codec.asn1.ASN1Type
Specified by:
getTagClass in interface ASN1Type

getValue

public Object getValue()
for interface codec.asn1.ASN1Type
Specified by:
getValue in interface ASN1Type

hasExtensions

public boolean hasExtensions()
implemented abstract method from java.security.cert.X509CRLEntry
Overrides:
hasExtensions in class X509CRLEntry

hasUnsupportedCriticalExtension

public boolean hasUnsupportedCriticalExtension()
implemented abstract method from java.security.cert.X509CRLEntry
Overrides:
hasUnsupportedCriticalExtension in class X509CRLEntry
Returns:
always returns false

isExplicit

public boolean isExplicit()
for interface codec.asn1.ASN1Type
Specified by:
isExplicit in interface ASN1Type

isOptional

public boolean isOptional()
for interface codec.asn1.ASN1Type
Specified by:
isOptional in interface ASN1Type

isType

public boolean isType(int eins,
                      int zwei)
for interface codec.asn1.ASN1Type
Specified by:
isType in interface ASN1Type
Following copied from interface: codec.asn1.ASN1Type
Parameters:
tag - The tag to match.
tagclass - The tag class to match.
Returns:
true if this type matches the given tag and tag class.

setExplicit

public void setExplicit(boolean ex)
for interface codec.asn1.ASN1Type
Specified by:
setExplicit in interface ASN1Type

setOptional

public void setOptional(boolean opt)
for interface codec.asn1.ASN1Type
Specified by:
setOptional in interface ASN1Type

setRevocationDate

public void setRevocationDate(Calendar cal)
set the date of this revocation entry

setRevocationDate

public void setRevocationDate(Date date)
set the date of this revocation entry

setSerialNumber

public void setSerialNumber(int nsnr)
set the serial number date of the certificate to be revoked in this CRL entry.

setSerialNumber

public void setSerialNumber(BigInteger nsnr)
set the serial number date of the certificate to be revoked in this CRL entry.

toString

public String toString()
menschl. lesbare Form
Overrides:
toString in class X509CRLEntry

toString

public String toString(String offset)
menschl. lesbare Form

writeExternal

public void writeExternal(ObjectOutput s)
                   throws IOException
Specified by:
writeExternal in interface Externalizable

readExternal

public void readExternal(ObjectInput s)
                  throws IOException
Specified by:
readExternal in interface Externalizable


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.