Deprecated
use classes in org.bouncycastle.pkcs.
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})
}
| Modifier and Type | Field and Description |
|---|---|
| private static Hashtable | |
| private static Hashtable | |
| private static Set | |
| private static Hashtable | |
| private static Hashtable |
| Access | Constructor and Description |
|---|---|
| public | PKCS10CertificationRequest(byte[] bytes)
construct a PKCS10 certification request from a DER encoded byte stream. |
| public | |
| public | PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey)
References Deprecated
X509Name is deprecated or references (maybe indirectly) at least one deprecated element.
create a PKCS10 certfication request using the BC provider. |
| public | PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey)
create a PKCS10 certfication request using the BC provider. |
| public | PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider)
create a PKCS10 certfication request using the named provider. |
| public | PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider)
References Deprecated
X509Name is deprecated or references (maybe indirectly) at least one deprecated element.
create a PKCS10 certfication request using the named provider. |
| Modifier and Type | Method and Description |
|---|---|
| private static X509Name | convertName(X500Principal name)
References Deprecated
X509Name is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private static RSASSAPSSparams | |
| private static String | |
| public byte[] | getEncoded()
Overrides org. Implements org. return a DER encoded byte array representing this object |
| public PublicKey | getPublicKey()
return the public key associated with the certification request - the public key is created using the BC provider. |
| public PublicKey | |
| pack-priv static String | |
| private void | |
| private static ASN1Sequence | |
| public boolean | |
| public boolean | |
| public boolean |
| algorithms | back to summary |
|---|---|
| private static Hashtable<K, V> algorithms | |
| keyAlgorithms | back to summary |
|---|---|
| private static Hashtable<K, V> keyAlgorithms | |
| noParams | back to summary |
|---|---|
| private static Set<E> noParams | |
| oids | back to summary |
|---|---|
| private static Hashtable<K, V> oids | |
| params | back to summary |
|---|---|
| private static Hashtable<K, V> params | |
| PKCS10CertificationRequest | back to summary |
|---|---|
| public PKCS10CertificationRequest(byte[] bytes) construct a PKCS10 certification request from a DER encoded byte stream. | |
| PKCS10CertificationRequest | back to summary |
|---|---|
| public PKCS10CertificationRequest(ASN1Sequence sequence) | |
| PKCS10CertificationRequest | back to summary |
|---|---|
| public PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
References Deprecated
See corresponding docs for further information. create a PKCS10 certfication request using the BC provider. | |
| PKCS10CertificationRequest | back to summary |
|---|---|
| public PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException create a PKCS10 certfication request using the BC provider. | |
| PKCS10CertificationRequest | back to summary |
|---|---|
| public PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException create a PKCS10 certfication request using the named provider. | |
| PKCS10CertificationRequest | back to summary |
|---|---|
| public PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
References Deprecated
See corresponding docs for further information. create a PKCS10 certfication request using the named provider. | |
| convertName | back to summary |
|---|---|
| private static X509Name convertName(X500Principal name)
References Deprecated
See corresponding docs for further information. | |
| creatPSSParams | back to summary |
|---|---|
| private static RSASSAPSSparams creatPSSParams(AlgorithmIdentifier hashAlgId, int saltSize) | |
| getDigestAlgName | back to summary |
|---|---|
| private static String getDigestAlgName(ASN1ObjectIdentifier digestAlgOID) | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Overrides org. Implements org. return a DER encoded byte array representing this object
| |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException return the public key associated with the certification request - the public key is created using the BC provider. | |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException | |
| getSignatureName | back to summary |
|---|---|
| pack-priv static String getSignatureName(AlgorithmIdentifier sigAlgId) | |
| setSignatureParameters | back to summary |
|---|---|
| private void setSignatureParameters(Signature signature, ASN1Encodable params) throws NoSuchAlgorithmException, SignatureException, InvalidKeyException | |
| toDERSequence | back to summary |
|---|---|
| private static ASN1Sequence toDERSequence(byte[] bytes) | |
| verify | back to summary |
|---|---|
| public boolean verify() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException verify the request using the BC provider. | |
| verify | back to summary |
|---|---|
| public boolean verify(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException verify the request using the passed in provider. | |
| verify | back to summary |
|---|---|
| public boolean verify(PublicKey pubKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException verify the request using the passed in public key and the provider.. | |