com.novell.ldap.rfc2251
Class RfcBindResponse
java.lang.Object
com.novell.ldap.asn1.ASN1Object
com.novell.ldap.asn1.ASN1Structured
com.novell.ldap.asn1.ASN1Sequence
com.novell.ldap.rfc2251.RfcBindResponse
- All Implemented Interfaces:
- RfcResponse, java.io.Serializable
public class RfcBindResponse
- extends ASN1Sequence
- implements RfcResponse
Represents and LDAP Bind Response.
BindResponse ::= [APPLICATION 1] SEQUENCE {
COMPONENTS OF LDAPResult,
serverSaslCreds [7] OCTET STRING OPTIONAL }
- See Also:
- Serialized Form
Constructor Summary |
RfcBindResponse(ASN1Decoder dec,
java.io.InputStream in,
int len)
The only time a client will create a BindResponse is when it is
decoding it from an InputStream
Note: If serverSaslCreds is included in the BindResponse, it does not
need to be decoded since it is already an OCTET STRING. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RfcBindResponse
public RfcBindResponse(ASN1Decoder dec,
java.io.InputStream in,
int len)
throws java.io.IOException
- The only time a client will create a BindResponse is when it is
decoding it from an InputStream
Note: If serverSaslCreds is included in the BindResponse, it does not
need to be decoded since it is already an OCTET STRING.
- Throws:
java.io.IOException
getResultCode
public final ASN1Enumerated getResultCode()
- Specified by:
getResultCode
in interface RfcResponse
getMatchedDN
public final RfcLDAPDN getMatchedDN()
- Specified by:
getMatchedDN
in interface RfcResponse
getErrorMessage
public final RfcLDAPString getErrorMessage()
- Specified by:
getErrorMessage
in interface RfcResponse
getReferral
public final RfcReferral getReferral()
- Specified by:
getReferral
in interface RfcResponse
getServerSaslCreds
public final ASN1OctetString getServerSaslCreds()
- Returns the OPTIONAL serverSaslCreds of a BindResponse if it exists
otherwise null.
getIdentifier
public final ASN1Identifier getIdentifier()
- Override getIdentifier to return an application-wide id.
- Overrides:
getIdentifier
in class ASN1Object
Copyright ? 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000