Class PublicKeyDecoder

java.lang.Object
org.cryptacular.asn.PublicKeyDecoder
All Implemented Interfaces:
ASN1Decoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>

public class PublicKeyDecoder extends Object implements ASN1Decoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>
Decodes public keys formatted in an X.509 SubjectPublicKeyInfo structure in either PEM or DER encoding.
Author:
Middleware Services
  • Constructor Details

    • PublicKeyDecoder

      public PublicKeyDecoder()
  • Method Details

    • decode

      public org.bouncycastle.crypto.params.AsymmetricKeyParameter decode(byte[] encoded, Object... args)
      Description copied from interface: ASN1Decoder
      Produces an object from an encoded representation.
      Specified by:
      decode in interface ASN1Decoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>
      Parameters:
      encoded - ASN.1 encoded data.
      args - Additional data required to perform decoding.
      Returns:
      Decoded object.