Class SignedPublicKeyAndChallenge

java.lang.Object
org.bouncycastle.mozilla.SignedPublicKeyAndChallenge
All Implemented Interfaces:
org.bouncycastle.util.Encodable
Direct Known Subclasses:
JcaSignedPublicKeyAndChallenge

public class SignedPublicKeyAndChallenge extends Object implements org.bouncycastle.util.Encodable
This is designed to parse the SignedPublicKeyAndChallenge created by the KEYGEN tag included by Mozilla based browsers.
 PublicKeyAndChallenge ::= SEQUENCE {
   spki SubjectPublicKeyInfo,
   challenge IA5STRING
 }

 SignedPublicKeyAndChallenge ::= SEQUENCE {
   publicKeyAndChallenge PublicKeyAndChallenge,
   signatureAlgorithm AlgorithmIdentifier,
   signature BIT STRING
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Parse a SignedPublicKeyAndChallenge from its DER encoding.
    protected
    SignedPublicKeyAndChallenge(org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge struct)
    Wrap an existing parsed SignedPublicKeyAndChallenge ASN.1 structure.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the challenge string the public key has been bound to.
    byte[]
    Return the default (DER) encoding of this SPKAC.
    getPublicKey(String provider)
    Deprecated.
    use JcaSignedPublicKeyAndChallenge.getPublicKey()
    org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge
    Return the inner PublicKeyAndChallenge structure (subject public key plus challenge string).
    org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
    Return the SubjectPublicKeyInfo carried by this SPKAC.
    boolean
    Verify the signature on this SPKAC against the contained public key.
    org.bouncycastle.asn1.ASN1Primitive
    Deprecated.
    use toASN1Structure
    org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge
    Return the underlying ASN.1 structure for this challenge.
    boolean
    Deprecated.
    use ContentVerifierProvider method
    boolean
    verify(String provider)
    Deprecated.
    use ContentVerifierProvider method

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait