Package org.ldaptive.transcode
Class CertificateValueTranscoder
java.lang.Object
org.ldaptive.transcode.CertificateValueTranscoder
- All Implemented Interfaces:
ValueTranscoder<Certificate>
Decodes and encodes a certificate for use in an ldap attribute value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeBinaryValue(byte[] value) Decodes the supplied ldap attribute value into a custom type.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.encodeStringValue(Certificate value) Encodes the supplied value into an ldap attribute value.getType()Returns the type produced by this value transcoder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ldaptive.transcode.ValueTranscoder
decoder, encoder
-
Field Details
-
BEGIN_CERT
PEM cert header. -
END_CERT
PEM cert footer.
-
-
Constructor Details
-
CertificateValueTranscoder
public CertificateValueTranscoder()
-
-
Method Details
-
decodeStringValue
Description copied from interface:ValueTranscoderDecodes the supplied ldap attribute value into a custom type.- Specified by:
decodeStringValuein interfaceValueTranscoder<Certificate>- Parameters:
value- to decode- Returns:
- decoded value
-
decodeBinaryValue
Description copied from interface:ValueTranscoderDecodes the supplied ldap attribute value into a custom type.- Specified by:
decodeBinaryValuein interfaceValueTranscoder<Certificate>- Parameters:
value- to decode- Returns:
- decoded value
-
encodeStringValue
Description copied from interface:ValueTranscoderEncodes the supplied value into an ldap attribute value.- Specified by:
encodeStringValuein interfaceValueTranscoder<Certificate>- Parameters:
value- to encode- Returns:
- encoded value
-
encodeBinaryValue
Description copied from interface:ValueTranscoderEncodes the supplied value into an ldap attribute value.- Specified by:
encodeBinaryValuein interfaceValueTranscoder<Certificate>- Parameters:
value- to encode- Returns:
- encoded value
-
getType
Description copied from interface:ValueTranscoderReturns the type produced by this value transcoder.- Specified by:
getTypein interfaceValueTranscoder<Certificate>- Returns:
- type produced by this value transcoder
-