public class SignedPublicKeyAndChallenge extends Object implements Encodable
PublicKeyAndChallenge ::= SEQUENCE { spki SubjectPublicKeyInfo, challenge IA5STRING } SignedPublicKeyAndChallenge ::= SEQUENCE { publicKeyAndChallenge PublicKeyAndChallenge, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING }
Modifier and Type | Field and Description |
---|---|
protected SignedPublicKeyAndChallenge |
spkacSeq |
Modifier | Constructor and Description |
---|---|
|
SignedPublicKeyAndChallenge(byte[] bytes) |
protected |
SignedPublicKeyAndChallenge(SignedPublicKeyAndChallenge struct) |
Modifier and Type | Method and Description |
---|---|
String |
getChallenge() |
byte[] |
getEncoded() |
PublicKey |
getPublicKey(String provider)
Deprecated.
use JcaSignedPublicKeyAndChallenge.getPublicKey()
|
PublicKeyAndChallenge |
getPublicKeyAndChallenge() |
SubjectPublicKeyInfo |
getSubjectPublicKeyInfo() |
boolean |
isSignatureValid(ContentVerifierProvider verifierProvider) |
ASN1Primitive |
toASN1Primitive()
Deprecated.
use toASN1Structure
|
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 SignedPublicKeyAndChallenge spkacSeq
public SignedPublicKeyAndChallenge(byte[] bytes)
protected SignedPublicKeyAndChallenge(SignedPublicKeyAndChallenge struct)
public SignedPublicKeyAndChallenge toASN1Structure()
public ASN1Primitive toASN1Primitive()
public 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 SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public String getChallenge()
public PublicKey getPublicKey(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
public byte[] getEncoded() throws IOException
getEncoded
in interface Encodable
IOException
Copyright © 2021 BouncyCastle.org. All rights reserved.