org.cryptacular.asn.ASN1Decoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cryptacular Show documentation
Show all versions of cryptacular Show documentation
The spectacular complement to the Bouncy Castle crypto API for Java.
/* 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