javax.naming.ldap

Class StartTlsRequest

public class StartTlsRequest extends Object implements ExtendedRequest

Since: 1.4

Field Summary
static StringOID
The assigned object identifier for this response.
Constructor Summary
StartTlsRequest()
Create a new instance.
Method Summary
ExtendedResponsecreateExtendedResponse(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.
StringgetID()
Return the response identifier.

Field Detail

OID

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

Constructor Detail

StartTlsRequest

public StartTlsRequest()
Create a new instance.

Method Detail

createExtendedResponse

public 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. The provider will be a subclass of StartTlsRequest with a no-argument constructor. The key is "javax.naming.ldap.StartTlsRequest".

Parameters: id the identifier, must be {@link #OID} or null berValue ignored offset ignored length ignored

Throws: NamingException if there is a problem creating the response

getEncodedValue

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

getID

public String getID()
Return the response identifier. This is simply the value of the {@link #OID} field.