kz.gamma.hardware.jce
Class Pkcs10RequestCreator

java.lang.Object
  extended by kz.gamma.hardware.jce.Pkcs10RequestCreator

public class Pkcs10RequestCreator
extends java.lang.Object

Author:
Renat Karimov

Field Summary
private  ASN1Set attributes
           
private  CryptoObject cryptoObject
           
private  JCEPrivateKey privateKey
           
private  JCEPublicKey publicKey
           
private  java.lang.String publicKeyOid
           
private  java.lang.String signatureOid
           
private  X509Name subject
           
 
Constructor Summary
Pkcs10RequestCreator(X509Name subject, JCEPrivateKey privateKey, JCEPublicKey publicKey, ASN1Set attributes, CryptoObject cryptoObject, java.lang.String publicKeyOid, java.lang.String signatureOid)
           
 
Method Summary
 byte[] createPkcs10()
           
private  java.util.Map generateSignature(byte[] tbs, boolean invertRsaSignature)
           
private  SubjectPublicKeyInfo generateSubjectPublicKeyInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subject

private X509Name subject

privateKey

private JCEPrivateKey privateKey

publicKey

private JCEPublicKey publicKey

attributes

private ASN1Set attributes

cryptoObject

private CryptoObject cryptoObject

publicKeyOid

private java.lang.String publicKeyOid

signatureOid

private java.lang.String signatureOid
Constructor Detail

Pkcs10RequestCreator

public Pkcs10RequestCreator(X509Name subject,
                            JCEPrivateKey privateKey,
                            JCEPublicKey publicKey,
                            ASN1Set attributes,
                            CryptoObject cryptoObject,
                            java.lang.String publicKeyOid,
                            java.lang.String signatureOid)
Method Detail

createPkcs10

public byte[] createPkcs10()
                    throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

generateSubjectPublicKeyInfo

private SubjectPublicKeyInfo generateSubjectPublicKeyInfo()

generateSignature

private java.util.Map generateSignature(byte[] tbs,
                                        boolean invertRsaSignature)
                                 throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException


Copyright © 2013 Gamma Technologies. All Rights Reserved.