java.lang.Objectjavax.naming.ldap.StartTlsRequest
public class StartTlsRequest
This class implements the LDAPv3 Extended Request for StartTLS as defined in Lightweight Directory Access Protocol (v3): Extension for Transport Layer Security The object identifier for StartTLS is 1.3.6.1.4.1.1466.20037 and no extended request value is defined.
StartTlsRequest/StartTlsResponse are used to establish a TLS connection over the existing LDAP connection associated with the JNDI context on which extendedOperation() is invoked. Typically, a JNDI program uses these classes as follows.
import javax.naming.ldap.*; // Open an LDAP association // Perform a StartTLS extended operation StartTlsResponse tls = // Open a TLS connection (over the existing LDAP association) and get details // of the negotiated TLS session: cipher suite, peer certificate, etc. // ... use ctx to perform protected LDAP operations // Close the TLS connection (revert back to the underlying LDAP association) tls.close(); // ... use ctx to perform unprotected LDAP operations // Close the LDAP association ctx.close;
StartTlsResponse,
Serialized Form| Field Summary | |
|---|---|
static String |
OID
The StartTLS extended request's assigned object identifier is 1.3.6.1.4.1.1466.20037. |
| Constructor Summary | |
|---|---|
StartTlsRequest()
Constructs a StartTLS extended request. |
|
| Method Summary | |
|---|---|
ExtendedResponse |
createExtendedResponse(String id,
byte[] berValue,
int offset,
int length)
Creates an extended response object that corresponds to the LDAP StartTLS extended request. |
byte[] |
getEncodedValue()
Retrieves the StartTLS request's ASN.1 BER encoded value. |
String |
getID()
Retrieves the StartTLS request's object identifier string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OID
| Constructor Detail |
|---|
public StartTlsRequest()
| Method Detail |
|---|
public String getID()
getID in interface ExtendedRequestpublic byte[] getEncodedValue()
getEncodedValue in interface ExtendedRequestpublic ExtendedResponse createExtendedResponse(String id, byte[] berValue, int offset, int length) throws NamingException
The result must be a concrete subclass of StartTlsResponse and must have a public zero-argument constructor.
This method locates the implementation class by locating configuration files that have the name:
META-INF/services/javax.naming.ldap.StartTlsResponseThe configuration files and their corresponding implementation classes must be accessible to the calling thread's context class loader.
Each configuration file should contain a list of fully-qualified class names, one per line. Space and tab characters surrounding each name, as well as blank lines, are ignored. The comment character is '#' (0x23); on each line all characters following the first comment character are ignored. The file must be encoded in UTF-8.
This method will return an instance of the first implementation class that it is able to load and instantiate successfully from the list of class names collected from the configuration files. This method uses the calling thread's context classloader to find the configuration files and to load the implementation class.
If no class can be found in this way, this method will use an implementation-specific way to locate an implementation. If none is found, a NamingException is thrown.
createExtendedResponse in interface ExtendedRequestid - The object identifier of the extended response.
Its value must be "1.3.6.1.4.1.1466.20037" or null.
Both values are equivalent.berValue - The possibly null ASN.1 BER encoded value of the
extended response. This is the raw BER bytes
including the tag and length of the response value.
It does not include the response OID.
Its value is ignored because a Start TLS response
is not expected to contain any response value.offset - The starting position in berValue of the bytes to use.
Its value is ignored because a Start TLS response
is not expected to contain any response value.length - The number of bytes in berValue to use.
Its value is ignored because a Start TLS response
is not expected to contain any response value.
NamingException - If a naming exception was encountered
while creating the StartTLS extended response object.ExtendedResponseCes informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)