javax.naming.ldap
Class StartTlsRequest

java.lang.Object
  extended by javax.naming.ldap.StartTlsRequest
All Implemented Interfaces:
Serializable, ExtendedRequest

public class StartTlsRequest
extends Object
implements ExtendedRequest

Since:
1.4
See Also:
Serialized Form

Field Summary
static String OID
          The assigned object identifier for this response.
 
Constructor Summary
StartTlsRequest()
          Create a new instance.
 
Method Summary
 ExtendedResponse createExtendedResponse(String id, byte[] berValue, int offset, int length)
          Create a new extended reponse object, using the standard service provider approach to load a provider.
 byte[] getEncodedValue()
          Return the encoded value.
 String getID()
          Return the response identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OID

public static final String OID
The assigned object identifier for this response.

See Also:
Constant Field Values
Constructor Detail

StartTlsRequest

public StartTlsRequest()
Create a new instance.

Method Detail

getID

public String getID()
Return the response identifier. This is simply the value of the OID field.

Specified by:
getID in interface ExtendedRequest

getEncodedValue

public byte[] getEncodedValue()
Return the encoded value. This implementation always returns null.

Specified by:
getEncodedValue in interface ExtendedRequest

createExtendedResponse

public ExtendedResponse createExtendedResponse(String id,
                                               byte[] berValue,
                                               int offset,
                                               int length)
                                        throws NamingException
Create a new extended reponse object, using the standard service provider approach to load a provider. The provider will be a subclass of StartTlsRequest with a no-argument constructor. The key is "javax.naming.ldap.StartTlsRequest".

Specified by:
createExtendedResponse in interface ExtendedRequest
Parameters:
id - the identifier, must be OID or null
berValue - ignored
offset - ignored
length - ignored
Throws:
NamingException - if there is a problem creating the response