All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cryptacular.asn.ASN1Decoder Maven / Gradle / Ivy

There is a newer version: 1.2.7
Show newest version
/* See LICENSE for licensing and NOTICE for copyright. */
package org.cryptacular.asn;

import org.cryptacular.EncodingException;

/**
 * Strategy interface for converting encoded ASN.1 bytes to an object.
 *
 * @param    Type of object to produce on decode.
 *
 * @author  Middleware Services
 */
public interface ASN1Decoder
{

  /**
   * Produces an object from an encoded representation.
   *
   * @param  encoded  ASN.1 encoded data.
   * @param  args  Additional data required to perform decoding.
   *
   * @return  Decoded object.
   *
   * @throws  EncodingException  on encoding errors.
   */
  T decode(byte[] encoded, Object... args) throws EncodingException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy