public final class LdapPrincipalSerializer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG
The LoggerFactory used by this class
|
| Modifier | Constructor and Description |
|---|---|
private |
LdapPrincipalSerializer()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static LdapPrincipal |
deserialize(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
java.io.ObjectInput in)
Deserializes a LdapPrincipal instance.
|
static void |
serialize(LdapPrincipal principal,
java.io.ObjectOutput out)
Serializes a LdapPrincipal instance.
|
public static void serialize(LdapPrincipal principal, java.io.ObjectOutput out) throws java.io.IOException
principal - The LdapPrincipal instance to serializeout - The stream into which we will write the serialized instancejava.io.IOException - If the stream can't be writtenpublic static LdapPrincipal deserialize(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, java.io.ObjectInput in) throws java.io.IOException, org.apache.directory.api.ldap.model.exception.LdapInvalidDnException
schemaManager - The SchemaManager (can be null)in - The input stream from which the LdapPrincipal is readjava.io.IOException - If the stream can't be readorg.apache.directory.api.ldap.model.exception.LdapInvalidDnException