public class SimpleAuthentication extends LdapAuthentication
parent
Constructor and Description |
---|
SimpleAuthentication() |
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the Simple authentication length
Simple authentication : 0x80 L1 simple
L1 = Length(simple)
Length(Simple authentication) = Length(0x80) + Length(L1) + Length(simple)
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the simple authentication to a PDU.
|
byte[] |
getSimple()
Get the simple password
|
void |
setSimple(byte[] simple)
Set the simple password
|
String |
toString()
Return the simple authentication as a string
|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public SimpleAuthentication()
Asn1Object#Asn1Object
public byte[] getSimple()
public void setSimple(byte[] simple)
simple
- The simple passwordpublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in class AbstractAsn1Object
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in class AbstractAsn1Object
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.