All LDAP Classes
Internal LDAP Classes

com.novell.ldap.rfc2251
Class RfcBindResponse

java.lang.Object
  extended by com.novell.ldap.asn1.ASN1Object
      extended by com.novell.ldap.asn1.ASN1Structured
          extended by com.novell.ldap.asn1.ASN1Sequence
              extended by 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

Field Summary
 
Fields inherited from class com.novell.ldap.asn1.ASN1Sequence
TAG
 
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.
 
Method Summary
 RfcLDAPString getErrorMessage()
           
 ASN1Identifier getIdentifier()
          Override getIdentifier to return an application-wide id.
 RfcLDAPDN getMatchedDN()
           
 RfcReferral getReferral()
           
 ASN1Enumerated getResultCode()
           
 ASN1OctetString getServerSaslCreds()
          Returns the OPTIONAL serverSaslCreds of a BindResponse if it exists otherwise null.
 
Methods inherited from class com.novell.ldap.asn1.ASN1Sequence
toString
 
Methods inherited from class com.novell.ldap.asn1.ASN1Structured
add, decodeStructured, encode, get, set, size, toArray, toString
 
Methods inherited from class com.novell.ldap.asn1.ASN1Object
getEncoding, setIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

All LDAP Classes
Internal LDAP Classes

Copyright ? 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000