Package org.cryptacular.util
Class CertUtil.DEREncodeType
java.lang.Object
org.cryptacular.util.CertUtil.DEREncodeType
- All Implemented Interfaces:
CertUtil.EncodeType<byte[]>
- Enclosing class:
CertUtil
private static final class CertUtil.DEREncodeType
extends Object
implements CertUtil.EncodeType<byte[]>
DER encode type.
-
Field Summary
Fields inherited from interface org.cryptacular.util.CertUtil.EncodeType
DER, PKCS7, X509 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]encode(X509Certificate cert) Encodes the supplied certificate.getType()Returns the type of encoding.
-
Constructor Details
-
DEREncodeType
private DEREncodeType()
-
-
Method Details
-
getType
Description copied from interface:CertUtil.EncodeTypeReturns the type of encoding.- Specified by:
getTypein interfaceCertUtil.EncodeType<byte[]>- Returns:
- type
-
encode
Description copied from interface:CertUtil.EncodeTypeEncodes the supplied certificate.- Specified by:
encodein interfaceCertUtil.EncodeType<byte[]>- Parameters:
cert- to encode- Returns:
- encoded certificate
- Throws:
CertificateEncodingException- if an error occurs encoding the certificate
-