Interface ASN1Decoder<T>

Type Parameters:
T - Type of object to produce on decode.
All Known Implementing Classes:
AbstractPrivateKeyDecoder, OpenSSLPrivateKeyDecoder, PKCS8PrivateKeyDecoder, PublicKeyDecoder

public interface ASN1Decoder<T>
Strategy interface for converting encoded ASN.1 bytes to an object.
Author:
Middleware Services
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(byte[] encoded, Object... args)
    Produces an object from an encoded representation.
  • Method Details

    • decode

      T decode(byte[] encoded, Object... args) throws EncodingException
      Produces an object from an encoded representation.
      Parameters:
      encoded - ASN.1 encoded data.
      args - Additional data required to perform decoding.
      Returns:
      Decoded object.
      Throws:
      EncodingException - on encoding errors.