Package org.cryptacular.asn
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
PublicKeyDecoder
public PublicKeyDecoder()
-
-
Method Details
-
decode
Description copied from interface:ASN1Decoder
Produces an object from an encoded representation.- Specified by:
decode
in interfaceASN1Decoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>
- Parameters:
encoded
- ASN.1 encoded data.args
- Additional data required to perform decoding.- Returns:
- Decoded object.
-