public class NetscapeCertRequest
extends org.bouncycastle.asn1.ASN1Object
SignedPublicKeyAndChallenge ::= SEQUENCE {
publicKeyAndChallenge PublicKeyAndChallenge,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING
}
PublicKey's encoded-format has to be X.509.Constructor and Description |
---|
NetscapeCertRequest(org.bouncycastle.asn1.ASN1Sequence spkac) |
NetscapeCertRequest(byte[] req) |
NetscapeCertRequest(String challenge,
org.bouncycastle.asn1.x509.AlgorithmIdentifier signing_alg,
PublicKey pub_key) |
Modifier and Type | Method and Description |
---|---|
String |
getChallenge() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getKeyAlgorithm() |
PublicKey |
getPublicKey() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getSigningAlgorithm() |
void |
setChallenge(String value) |
void |
setKeyAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier value) |
void |
setPublicKey(PublicKey value) |
void |
setSigningAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier value) |
void |
sign(PrivateKey priv_key) |
void |
sign(PrivateKey priv_key,
SecureRandom rand) |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
boolean |
verify(String challenge) |
public NetscapeCertRequest(byte[] req) throws IOException
IOException
public NetscapeCertRequest(org.bouncycastle.asn1.ASN1Sequence spkac)
public NetscapeCertRequest(String challenge, org.bouncycastle.asn1.x509.AlgorithmIdentifier signing_alg, PublicKey pub_key) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchProviderException
public String getChallenge()
public void setChallenge(String value)
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSigningAlgorithm()
public void setSigningAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier value)
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getKeyAlgorithm()
public void setKeyAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier value)
public PublicKey getPublicKey()
public void setPublicKey(PublicKey value)
public boolean verify(String challenge) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, NoSuchProviderException
public void sign(PrivateKey priv_key) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, NoSuchProviderException, InvalidKeySpecException
public void sign(PrivateKey priv_key, SecureRandom rand) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, NoSuchProviderException, InvalidKeySpecException
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object
Copyright © 2017 BouncyCastle.org. All rights reserved.