public class CertificateValueTranscoder extends Object implements ValueTranscoder<Certificate>
Modifier and Type | Field and Description |
---|---|
private static String |
BEGIN_CERT
PEM cert header.
|
private static String |
END_CERT
PEM cert footer.
|
Constructor and Description |
---|
CertificateValueTranscoder() |
Modifier and Type | Method and Description |
---|---|
Certificate |
decodeBinaryValue(byte[] value)
Decodes the supplied ldap attribute value into a custom type.
|
Certificate |
decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.
|
byte[] |
encodeBinaryValue(Certificate value)
Encodes the supplied value into an ldap attribute value.
|
String |
encodeStringValue(Certificate value)
Encodes the supplied value into an ldap attribute value.
|
Class<Certificate> |
getType()
Returns the type produced by this value transcoder.
|
private static final String BEGIN_CERT
private static final String END_CERT
public Certificate decodeStringValue(String value)
ValueTranscoder
decodeStringValue
in interface ValueTranscoder<Certificate>
value
- to decodepublic Certificate decodeBinaryValue(byte[] value)
ValueTranscoder
decodeBinaryValue
in interface ValueTranscoder<Certificate>
value
- to decodepublic String encodeStringValue(Certificate value)
ValueTranscoder
encodeStringValue
in interface ValueTranscoder<Certificate>
value
- to encodepublic byte[] encodeBinaryValue(Certificate value)
ValueTranscoder
encodeBinaryValue
in interface ValueTranscoder<Certificate>
value
- to encodepublic Class<Certificate> getType()
ValueTranscoder
getType
in interface ValueTranscoder<Certificate>
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.