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, setParentpublic SimpleAuthentication()
Asn1Object#Asn1Objectpublic byte[] getSimple()
public void setSimple(byte[] simple)
simple - The simple passwordpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in class AbstractAsn1Objectpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in class AbstractAsn1Objectbuffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.