1 7 8 package javax.naming.ldap; 9 10 import java.io.IOException ; 11 import javax.net.ssl.SSLSession; 12 import javax.net.ssl.SSLSocketFactory; 13 import javax.net.ssl.HostnameVerifier; 14 15 59 public abstract class StartTlsResponse implements ExtendedResponse { 60 61 63 67 public static final String OID = "1.3.6.1.4.1.1466.20037"; 68 69 70 72 76 protected StartTlsResponse() { 77 } 78 79 80 82 87 public String getID() { 88 return OID; 89 } 90 91 98 public byte[] getEncodedValue() { 99 return null; 100 } 101 102 104 116 public abstract void setEnabledCipherSuites(String [] suites); 117 118 130 public abstract void setHostnameVerifier(HostnameVerifier verifier); 131 132 143 public abstract SSLSession negotiate() throws IOException ; 144 145 175 public abstract SSLSession negotiate(SSLSocketFactory factory) 176 throws IOException ; 177 178 185 public abstract void close() throws IOException ; 186 187 private static final long serialVersionUID = 8372842182579276418L; 188 } 189 | Popular Tags |