|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dstc.security.pki.PKCS10CertificationRequest
Implementation of CertficateRequest for PKCS10
Implements the ASN.1 structure CertificationRequest.
CertificationRequest ::= SEQUENCE { certificationRequestInfo CertificationRequestInfo, signatureAlgorithm SignatureAlgorithmIdentifier, signature Signature } CertificationRequestInfo ::= SEQUENCE { version Version, subject Name, subjectPublicKeyInfo SubjectPublicKeyInfo, attributes [0] IMPLICIT Attributes } Version ::= INTEGER Attributes ::= SET OF Attribute SignatureAlgorithmIdentifier ::= AlgorithmIdentifier Signature ::= BIT STRING
Constructor Summary | |
PKCS10CertificationRequest(byte[] encoded)
Constructs a PKCS10CertificationRequest object from
a byte array containing an encoding of a pkcs10 request. |
|
PKCS10CertificationRequest(InputStream is)
Constructs a PKCS10CertificationRequest object from
an InputStream containing an encoding of a pkcs10
request. |
|
PKCS10CertificationRequest(String dn,
PublicKey pub,
Set atts,
String sigAlgName,
PrivateKey priv)
Constructs PKCS10CertificationRequest from the
subject's DN, a set of Attributes, the signature algorithm name
and subject's private key. |
Method Summary | |
byte[] |
getEncoded()
Returns the DER encoding for this PKCS10CertificationRequest |
byte[] |
getEncodedPublicKey()
Returns the encoding of SubjectPublicKeyInfo defined by the ASN.1 structure |
String |
getKeyAlgName()
Returns the key algorithm name for this PKCS10CertificationRequest |
PublicKey |
getPublicKey()
Returns the PublicKey for this
PKCS10CertificationRequest |
String |
getSigAlgName()
Returns the signature algorithm name for this PKCS10CertificationRequest |
byte[] |
getSignature()
Returns the signature for this PKCS10CertificationRequest |
String |
getSubjectName()
Returns the subject name for this PKCS10CertificationRequest |
boolean |
verifySignature()
Verifies the signature in this PKCS10CertificationRequest |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PKCS10CertificationRequest(String dn, PublicKey pub, Set atts, String sigAlgName, PrivateKey priv) throws PKIException
Constructs PKCS10CertificationRequest
from the
subject's DN, a set of Attributes, the signature algorithm name
and subject's private key.
dn
- subject's Distinguished Name (DN)pub
- the subject's public keyatts
- set of attributes for this requestsigAlgName
- the algorithm name of the signaturepriv
- the subject's private keypublic PKCS10CertificationRequest(byte[] encoded) throws PKIException
PKCS10CertificationRequest
object from
a byte array containing an encoding of a pkcs10 request. The encoding
can be in ASN.1 DER format, or be a PEM encoding thereof in which
the header can either be "-----BEGIN NEW CERTIFICATE REQUEST-----" or
"-----BEGIN CERTIFICATION REQUEST-----".encoded
- the byte array containing the DER encodingpublic PKCS10CertificationRequest(InputStream is) throws PKIException
PKCS10CertificationRequest
object from
an InputStream
containing an encoding of a pkcs10
request. The encoding
can be in ASN.1 DER format, or be a PEM encoding thereof in which
the header can either be "-----BEGIN NEW CERTIFICATE REQUEST-----" or
"-----BEGIN CERTIFICATION REQUEST-----".is
- the InputStream containing the DER encodingMethod Detail |
public byte[] getEncoded()
PKCS10CertificationRequest
public byte[] getEncodedPublicKey()
SubjectPublicKeyInfo ::= SEQUENCE { algorithm AlgorithmIdentifier, subjectPublicKey BIT STRING }
public PublicKey getPublicKey()
PublicKey
for this
PKCS10CertificationRequest
public byte[] getSignature()
PKCS10CertificationRequest
public String getSigAlgName()
PKCS10CertificationRequest
public String getKeyAlgName()
PKCS10CertificationRequest
public String getSubjectName()
PKCS10CertificationRequest
public boolean verifySignature()
PKCS10CertificationRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |