public class PKCS10CertificationRequest extends CertificationRequest
CertificationRequest ::= SEQUENCE {
certificationRequestInfo CertificationRequestInfo,
signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }},
signature BIT STRING
}
CertificationRequestInfo ::= SEQUENCE {
version INTEGER { v1(0) } (v1,...),
subject Name,
subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
attributes [0] Attributes{{ CRIAttributes }}
}
Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }}
Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE {
type ATTRIBUTE.&id({IOSet}),
values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{\@type})
}
reqInfo, sigAlgId, sigBits| Constructor and Description |
|---|
PKCS10CertificationRequest(ASN1Sequence sequence)
Deprecated.
|
PKCS10CertificationRequest(byte[] bytes)
Deprecated.
construct a PKCS10 certification request from a DER encoded
byte stream.
|
PKCS10CertificationRequest(java.lang.String signatureAlgorithm,
javax.security.auth.x500.X500Principal subject,
java.security.PublicKey key,
ASN1Set attributes,
java.security.PrivateKey signingKey)
Deprecated.
create a PKCS10 certfication request using the BC provider.
|
PKCS10CertificationRequest(java.lang.String signatureAlgorithm,
javax.security.auth.x500.X500Principal subject,
java.security.PublicKey key,
ASN1Set attributes,
java.security.PrivateKey signingKey,
java.lang.String provider)
Deprecated.
create a PKCS10 certfication request using the named provider.
|
PKCS10CertificationRequest(java.lang.String signatureAlgorithm,
X509Name subject,
java.security.PublicKey key,
ASN1Set attributes,
java.security.PrivateKey signingKey)
Deprecated.
create a PKCS10 certfication request using the BC provider.
|
PKCS10CertificationRequest(java.lang.String signatureAlgorithm,
X509Name subject,
java.security.PublicKey key,
ASN1Set attributes,
java.security.PrivateKey signingKey,
java.lang.String provider)
Deprecated.
create a PKCS10 certfication request using the named provider.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded()
Deprecated.
return a DER encoded byte array representing this object
|
java.security.PublicKey |
getPublicKey()
Deprecated.
return the public key associated with the certification request -
the public key is created using the BC provider.
|
java.security.PublicKey |
getPublicKey(java.lang.String provider)
Deprecated.
|
boolean |
verify()
Deprecated.
verify the request using the BC provider.
|
boolean |
verify(java.security.PublicKey pubKey,
java.lang.String provider)
Deprecated.
verify the request using the passed in public key and the provider..
|
boolean |
verify(java.lang.String provider)
Deprecated.
verify the request using the passed in provider.
|
getCertificationRequestInfo, getInstance, getSignature, getSignatureAlgorithm, toASN1Primitiveequals, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectpublic PKCS10CertificationRequest(byte[] bytes)
public PKCS10CertificationRequest(ASN1Sequence sequence)
public PKCS10CertificationRequest(java.lang.String signatureAlgorithm,
X509Name subject,
java.security.PublicKey key,
ASN1Set attributes,
java.security.PrivateKey signingKey)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException,
java.security.SignatureException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionjava.security.SignatureExceptionpublic PKCS10CertificationRequest(java.lang.String signatureAlgorithm,
javax.security.auth.x500.X500Principal subject,
java.security.PublicKey key,
ASN1Set attributes,
java.security.PrivateKey signingKey)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException,
java.security.SignatureException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionjava.security.SignatureExceptionpublic PKCS10CertificationRequest(java.lang.String signatureAlgorithm,
javax.security.auth.x500.X500Principal subject,
java.security.PublicKey key,
ASN1Set attributes,
java.security.PrivateKey signingKey,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException,
java.security.SignatureException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionjava.security.SignatureExceptionpublic PKCS10CertificationRequest(java.lang.String signatureAlgorithm,
X509Name subject,
java.security.PublicKey key,
ASN1Set attributes,
java.security.PrivateKey signingKey,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException,
java.security.SignatureException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionjava.security.SignatureExceptionpublic java.security.PublicKey getPublicKey()
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionpublic java.security.PublicKey getPublicKey(java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionpublic boolean verify()
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException,
java.security.SignatureException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionjava.security.SignatureExceptionpublic boolean verify(java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException,
java.security.SignatureException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionjava.security.SignatureExceptionpublic boolean verify(java.security.PublicKey pubKey,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException,
java.security.SignatureException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionjava.security.SignatureExceptionpublic byte[] getEncoded()
getEncoded in interface EncodablegetEncoded in class ASN1Object