Class cryptiX.user.X509CertRequest
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptiX.user.X509CertRequest

java.lang.Object
   |
   +----cryptiX.user.X509CertRequest

public class X509CertRequest
extends Object
This class represents a X509 certificate request.

Constructor Index

 o X509CertRequest()
default constructor
 o X509CertRequest(byte[])
create a x509CertRequest form a PEM or DER array
 o X509CertRequest(String)
create a x509CertRequest form a PEM or DER file

Method Index

 o publicKey()
returns the public key of this certificate request
 o saveFormat()
returns the file format (ASN1.DER, ASN1.PEM) of the cert request
 o saveToFile(String)
saves the certificate request to a file
 o setPublicKey(PublicKey)
sets the public key of this certificate request
 o setSaveFormat(int)
sets the file format (ASN1.DER, ASN1.PEM) of the cert request
 o setSignatureAlgorithmID(String)
sets the signature algorithm of this certificate request
 o setSubject(Name)
sets the subject of this certificate request
 o setVersion(int)
sets the version of this certificate request
 o signatureAlgorithmID()
returns the signature algorithm of this certificate request
 o signCertRequest(PrivateKey)
signs the certificate with the private key of the issuer
 o subject()
returns the subject of this certificate request
 o toDER()
returns the DER format of the certificate request
 o toPEM()
returns the PEM format of the certificate request
 o toString()
converts the certificate request to a text output
 o verify()
verifies the self signed certificate request
 o version()
returns the version of this certificate request

Constructors

 o X509CertRequest
  public X509CertRequest(String fileName) throws IOException, CodingException
create a x509CertRequest form a PEM or DER file
 o X509CertRequest
  public X509CertRequest(byte arr[]) throws CodingException
create a x509CertRequest form a PEM or DER array
 o X509CertRequest
  public X509CertRequest()
default constructor

Methods

 o signCertRequest
  public void signCertRequest(PrivateKey issuerSK) throws CodingException
signs the certificate with the private key of the issuer
Parameters:
issuerSK - the private key of the issuer
 o verify
  public boolean verify() throws CodingException
verifies the self signed certificate request
Parameters:
signerPK - the public key from the signer
Returns:
true if signature OK
 o toPEM
  public byte[] toPEM()
returns the PEM format of the certificate request
 o toDER
  public byte[] toDER()
returns the DER format of the certificate request
 o saveToFile
  public void saveToFile(String fileName) throws IOException
saves the certificate request to a file
Parameters:
fileName - name of the file
pemFormat - true, if file format should be PEM false, if file format should be DER
 o toString
  public String toString()
converts the certificate request to a text output
Overrides:
toString in class Object
 o setSaveFormat
  public void setSaveFormat(int format)
sets the file format (ASN1.DER, ASN1.PEM) of the cert request
 o setVersion
  public void setVersion(int v)
sets the version of this certificate request
 o setSignatureAlgorithmID
  public void setSignatureAlgorithmID(String said)
sets the signature algorithm of this certificate request
 o setSubject
  public void setSubject(Name su)
sets the subject of this certificate request
 o setPublicKey
  public void setPublicKey(PublicKey pk)
sets the public key of this certificate request
 o saveFormat
  public int saveFormat()
returns the file format (ASN1.DER, ASN1.PEM) of the cert request
 o version
  public int version()
returns the version of this certificate request
 o signatureAlgorithmID
  public String signatureAlgorithmID()
returns the signature algorithm of this certificate request
 o subject
  public Name subject()
returns the subject of this certificate request
 o publicKey
  public PublicKey publicKey()
returns the public key of this certificate request

All Packages  Class Hierarchy  This Package  Previous  Next  Index