public class SignedPublicKeyAndChallenge extends Object implements org.bouncycastle.util.Encodable
PublicKeyAndChallenge ::= SEQUENCE { spki SubjectPublicKeyInfo, challenge IA5STRING } SignedPublicKeyAndChallenge ::= SEQUENCE { publicKeyAndChallenge PublicKeyAndChallenge, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING }
Modifier and Type | Field and Description |
---|---|
protected org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge |
spkacSeq |
Modifier | Constructor and Description |
---|---|
|
SignedPublicKeyAndChallenge(byte[] bytes) |
protected |
SignedPublicKeyAndChallenge(org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge struct) |
Modifier and Type | Method and Description |
---|---|
String |
getChallenge() |
byte[] |
getEncoded() |
PublicKey |
getPublicKey(String provider)
Deprecated.
use JcaSignedPublicKeyAndChallenge.getPublicKey()
|
org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge |
getPublicKeyAndChallenge() |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
getSubjectPublicKeyInfo() |
boolean |
isSignatureValid(ContentVerifierProvider verifierProvider) |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Deprecated.
use toASN1Structure
|
org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge |
toASN1Structure()
Return the underlying ASN.1 structure for this challenge.
|
boolean |
verify()
Deprecated.
use ContentVerifierProvider method
|
boolean |
verify(String provider)
Deprecated.
use ContentVerifierProvider method
|
protected final org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge spkacSeq
public SignedPublicKeyAndChallenge(byte[] bytes)
protected SignedPublicKeyAndChallenge(org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge struct)
public org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge toASN1Structure()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
public org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge getPublicKeyAndChallenge()
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws OperatorCreationException, IOException
OperatorCreationException
IOException
public boolean verify() throws NoSuchAlgorithmException, SignatureException, NoSuchProviderException, InvalidKeyException
public boolean verify(String provider) throws NoSuchAlgorithmException, SignatureException, NoSuchProviderException, InvalidKeyException
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public String getChallenge()
public PublicKey getPublicKey(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
public byte[] getEncoded() throws IOException
getEncoded
in interface org.bouncycastle.util.Encodable
IOException
Copyright © 2017 BouncyCastle.org. All rights reserved.