Package org.cryptacular.util
Interface CertUtil.EncodeType<T>
- Type Parameters:
T
- type of encoding
- Enclosing class:
- CertUtil
public static interface CertUtil.EncodeType<T>
Marker interface for encoding types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CertUtil.EncodeType<byte[]>
DER encode type.static final CertUtil.EncodeType<String>
PKCS7 encode type.static final CertUtil.EncodeType<String>
X509 encode type. -
Method Summary
Modifier and TypeMethodDescriptionencode
(X509Certificate cert) Encodes the supplied certificate.getType()
Returns the type of encoding.
-
Field Details
-
DER
DER encode type. -
X509
X509 encode type. -
PKCS7
PKCS7 encode type.
-
-
Method Details
-
getType
String getType()Returns the type of encoding.- Returns:
- type
-
encode
Encodes the supplied certificate.- Parameters:
cert
- to encode- Returns:
- encoded certificate
- Throws:
CertificateEncodingException
- if an error occurs encoding the certificate
-