01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.naming.ldap;
19:
20: import java.io.IOException;
21:
22: import javax.net.ssl.HostnameVerifier;
23: import javax.net.ssl.SSLSession;
24: import javax.net.ssl.SSLSocketFactory;
25:
26: /**
27: * TODO: JavaDoc
28: */
29: public abstract class StartTlsResponse implements ExtendedResponse {
30:
31: public static final String OID = "1.3.6.1.4.1.1466.20037"; //$NON-NLS-1$
32:
33: protected StartTlsResponse() {
34: }
35:
36: public byte[] getEncodedValue() {
37: return null;
38: }
39:
40: public abstract SSLSession negotiate() throws IOException;
41:
42: public abstract SSLSession negotiate(SSLSocketFactory factory)
43: throws IOException;
44:
45: public abstract void setEnabledCipherSuites(String[] suites);
46:
47: public abstract void setHostnameVerifier(HostnameVerifier verifier);
48:
49: public abstract void close() throws IOException;
50:
51: public String getID() {
52: return OID;
53: }
54:
55: }
|