org.ldaptive.io
Class CertificateValueTranscoder

java.lang.Object
  extended by org.ldaptive.io.CertificateValueTranscoder
All Implemented Interfaces:
ValueTranscoder<Certificate>

public class CertificateValueTranscoder
extends Object
implements ValueTranscoder<Certificate>

Decodes and encodes a certificate for use in an ldap attribute value.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
CertificateValueTranscoder()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertificateValueTranscoder

public CertificateValueTranscoder()
Method Detail

decodeStringValue

public Certificate decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.

Specified by:
decodeStringValue in interface ValueTranscoder<Certificate>
Parameters:
value - to decode
Returns:
decoded value

decodeBinaryValue

public Certificate decodeBinaryValue(byte[] value)
Decodes the supplied ldap attribute value into a custom type.

Specified by:
decodeBinaryValue in interface ValueTranscoder<Certificate>
Parameters:
value - to decode
Returns:
decoded value

encodeStringValue

public String encodeStringValue(Certificate value)
Encodes the supplied value into an ldap attribute value.

Specified by:
encodeStringValue in interface ValueTranscoder<Certificate>
Parameters:
value - to encode
Returns:
encoded value

encodeBinaryValue

public byte[] encodeBinaryValue(Certificate value)
Encodes the supplied value into an ldap attribute value.

Specified by:
encodeBinaryValue in interface ValueTranscoder<Certificate>
Parameters:
value - to encode
Returns:
encoded value

getType

public Class<Certificate> getType()
Returns the type produced by this value transcoder.

Specified by:
getType in interface ValueTranscoder<Certificate>
Returns:
type produced by this value transcoder


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.