Package org.ldaptive.transcode
Class CertificateValueTranscoder
- java.lang.Object
-
- org.ldaptive.transcode.CertificateValueTranscoder
-
- All Implemented Interfaces:
ValueTranscoder<java.security.cert.Certificate>
public class CertificateValueTranscoder extends java.lang.Object implements ValueTranscoder<java.security.cert.Certificate>
Decodes and encodes a certificate for use in an ldap attribute value.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description CertificateValueTranscoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.Certificate
decodeBinaryValue(byte[] value)
Decodes the supplied ldap attribute value into a custom type.java.security.cert.Certificate
decodeStringValue(java.lang.String value)
Decodes the supplied ldap attribute value into a custom type.byte[]
encodeBinaryValue(java.security.cert.Certificate value)
Encodes the supplied value into an ldap attribute value.java.lang.String
encodeStringValue(java.security.cert.Certificate value)
Encodes the supplied value into an ldap attribute value.java.lang.Class<java.security.cert.Certificate>
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, wait
-
Methods inherited from interface org.ldaptive.transcode.ValueTranscoder
decoder, encoder
-
-
-
-
Method Detail
-
decodeStringValue
public java.security.cert.Certificate decodeStringValue(java.lang.String value)
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Specified by:
decodeStringValue
in interfaceValueTranscoder<java.security.cert.Certificate>
- Parameters:
value
- to decode- Returns:
- decoded value
-
decodeBinaryValue
public java.security.cert.Certificate decodeBinaryValue(byte[] value)
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Specified by:
decodeBinaryValue
in interfaceValueTranscoder<java.security.cert.Certificate>
- Parameters:
value
- to decode- Returns:
- decoded value
-
encodeStringValue
public java.lang.String encodeStringValue(java.security.cert.Certificate value)
Description copied from interface:ValueTranscoder
Encodes the supplied value into an ldap attribute value.- Specified by:
encodeStringValue
in interfaceValueTranscoder<java.security.cert.Certificate>
- Parameters:
value
- to encode- Returns:
- encoded value
-
encodeBinaryValue
public byte[] encodeBinaryValue(java.security.cert.Certificate value)
Description copied from interface:ValueTranscoder
Encodes the supplied value into an ldap attribute value.- Specified by:
encodeBinaryValue
in interfaceValueTranscoder<java.security.cert.Certificate>
- Parameters:
value
- to encode- Returns:
- encoded value
-
getType
public java.lang.Class<java.security.cert.Certificate> getType()
Description copied from interface:ValueTranscoder
Returns the type produced by this value transcoder.- Specified by:
getType
in interfaceValueTranscoder<java.security.cert.Certificate>
- Returns:
- type produced by this value transcoder
-
-