public class SignedPublicKeyAndChallenge
extends java.lang.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 |
|---|---|
java.lang.String |
getChallenge() |
byte[] |
getEncoded() |
java.security.PublicKey |
getPublicKey(java.lang.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(java.lang.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, java.io.IOException
OperatorCreationExceptionjava.io.IOExceptionpublic boolean verify()
throws java.security.NoSuchAlgorithmException,
java.security.SignatureException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException
java.security.NoSuchAlgorithmExceptionjava.security.SignatureExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionpublic boolean verify(java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.SignatureException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException
java.security.NoSuchAlgorithmExceptionjava.security.SignatureExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionpublic org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public java.lang.String getChallenge()
public 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 byte[] getEncoded()
throws java.io.IOException
getEncoded in interface org.bouncycastle.util.Encodablejava.io.IOException