|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.bind.LdapAuthentication
org.apache.directory.shared.ldap.codec.bind.SaslCredentials
public class SaslCredentials
A ldapObject which stores the SASL authentication of a BindRequest.
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
parent |
Constructor Summary | |
---|---|
SaslCredentials()
|
Method Summary | |
---|---|
int |
computeLength()
Compute the Sasl authentication length Sasl authentication : 0xA3 L1 0x04 L2 mechanism [0x04 L3 credentials] L2 = Length(mechanism) L3 = Length(credentials) L1 = L2 + L3 Length(Sasl authentication) = Length(0xA3) + Length(L1) + Length(0x04) + Length(L2) + Length(mechanism) [+ Length(0x04) + Length(L3) + Length(credentials)] |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the sasl authentication to a PDU. |
byte[] |
getCredentials()
Get the credentials |
java.lang.String |
getMechanism()
Get the mechanism |
void |
setCredentials(byte[] credentials)
Set the credentials |
void |
setMechanism(java.lang.String mechanism)
Set the mechanism |
java.lang.String |
toString()
Get a String representation of a SaslCredential |
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SaslCredentials()
Asn1Object#Asn1Object
Method Detail |
---|
public byte[] getCredentials()
public void setCredentials(byte[] credentials)
credentials
- The credentialspublic java.lang.String getMechanism()
public void setMechanism(java.lang.String mechanism)
mechanism
- The mechanismpublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in class AbstractAsn1Object
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in class AbstractAsn1Object
buffer
- The buffer where to put the PDU
EncoderException
- if the buffer can't be encodedpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |