anon.crypto
Class X509CertificateIssuer

java.lang.Object
  extended by anon.crypto.AbstractX509Extension
      extended by anon.crypto.X509CertificateIssuer

public class X509CertificateIssuer
extends AbstractX509Extension

This class implements the CertificateIssuer Entry-Extension for X.509-CRLs as specified in RFC 5280.

Author:
Robert Hirschberger
See Also:
http://tools.ietf.org/html/rfc5280

Field Summary
static java.lang.String IDENTIFIER
           
private  X509DistinguishedName m_issuer
          the distinguished name of the certificate's issuer
 
Constructor Summary
X509CertificateIssuer(org.bouncycastle.asn1.DERSequence a_extension)
          Creates an new X509etificateIssuer object from a BouncyCastle DERSequence
X509CertificateIssuer(X509DistinguishedName a_issuer)
          Create a new X509CertificateIssuer object from a given distinguished name.
 
Method Summary
private static byte[] createDEROctets(X509DistinguishedName a_issuer)
          Generates the DEROctets of this extension to hand over to the super class.
private  void createValue()
          reads the distinguished name of the certificate issuer from the DEROctets
 boolean equalsIssuer(java.lang.Object a_object)
          Returns if the issuer's DN and a given DN are equal.
 X509DistinguishedName getDistinguishedName()
          Returns the X509DistinguishedName of the issuer represented by this extension
 java.lang.String getName()
          Returns the human-readable name of this extension.
 java.util.Vector getValues()
          This method returns all values of this extension in separated String objects.
 
Methods inherited from class anon.crypto.AbstractX509Extension
equals, getBCExtension, getDEROctets, getIdentifier, getInstance, hashCode, isCritical, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER

m_issuer

private X509DistinguishedName m_issuer
the distinguished name of the certificate's issuer

Constructor Detail

X509CertificateIssuer

public X509CertificateIssuer(X509DistinguishedName a_issuer)
Create a new X509CertificateIssuer object from a given distinguished name.

Parameters:
a_issuer - the distinguished name of the certificate's issuer

X509CertificateIssuer

public X509CertificateIssuer(org.bouncycastle.asn1.DERSequence a_extension)
Creates an new X509etificateIssuer object from a BouncyCastle DERSequence

Parameters:
a_extension - the extions as DERSequence
Method Detail

createDEROctets

private static byte[] createDEROctets(X509DistinguishedName a_issuer)
Generates the DEROctets of this extension to hand over to the super class.

Parameters:
a_issuer - the distinguished name of the certificate's issuer
Returns:
the DEROctets of this extension

getName

public java.lang.String getName()
Description copied from class: AbstractX509Extension
Returns the human-readable name of this extension.

Specified by:
getName in class AbstractX509Extension
Returns:
"CertificateIssuer"

createValue

private void createValue()
reads the distinguished name of the certificate issuer from the DEROctets


getValues

public java.util.Vector getValues()
Description copied from class: AbstractX509Extension
This method returns all values of this extension in separated String objects. The values should be human readable.

Specified by:
getValues in class AbstractX509Extension
Returns:
a human-readable vector containing the String-representation of the issuer's DN.

equalsIssuer

public boolean equalsIssuer(java.lang.Object a_object)
Returns if the issuer's DN and a given DN are equal. You may call this with a X509DistinguishedName or a BC X509Name object. Otherwise false is returned.

Returns:
if the issuer's DN and a given DN are equal
See Also:
X509DistinguishedName.equals()

getDistinguishedName

public X509DistinguishedName getDistinguishedName()
Returns the X509DistinguishedName of the issuer represented by this extension

Returns:
the issuer's X509DistinguishedName