iaik.me.keymgmt
Class CertificateRequest

java.lang.Object
  |
  +--iaik.me.keymgmt.CertificateRequest

public class CertificateRequest
extends Object

A PKCS#10 certificate request. It conforms to version 1.7 as defined in http://www.rsasecurity.com/rsalabs/pkcs/pkcs-10/. Note that attributes are not supported. They are always encoded as an empty set.


Constructor Summary
CertificateRequest(PublicKey publicKey, Name subject)
          Create a certificate request for the given subject and public key.
 
Method Summary
 byte[] sign(String algorithm, PrivateKey privateKey)
          Sign the certificate request and return its DER encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertificateRequest

public CertificateRequest(PublicKey publicKey,
                          Name subject)
Create a certificate request for the given subject and public key.
Method Detail

sign

public byte[] sign(String algorithm,
                   PrivateKey privateKey)
            throws CryptoException
Sign the certificate request and return its DER encoding. Note that certificate requests must be self signed, i.e. the private key must correspond to the public key used to create this object. Algorithm must be a name or an ObjectId identifying a signature algorithm compatible with the private key. For example, it could be "MD5withRSA" or ASN1.OID_SHA1_WITH_DSA.

This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note).

IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC