Class JcaSignedPublicKeyAndChallenge

  • All Implemented Interfaces:
    org.bouncycastle.util.Encodable

    public class JcaSignedPublicKeyAndChallenge
    extends SignedPublicKeyAndChallenge
    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
      }
      
    • Constructor Detail

      • JcaSignedPublicKeyAndChallenge

        public JcaSignedPublicKeyAndChallenge​(byte[] bytes)
    • Method Detail

      • getPublicKey

        public java.security.PublicKey getPublicKey()
                                             throws java.security.NoSuchAlgorithmException,
                                                    java.security.NoSuchProviderException,
                                                    java.security.InvalidKeyException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.NoSuchProviderException
        java.security.InvalidKeyException