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