001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: /**
019: * @author Vera Y. Petrashkova
020: * @version $Revision$
021: */package javax.net.ssl;
022:
023: import java.security.Principal;
024: import java.security.cert.Certificate;
025: import javax.security.cert.X509Certificate;
026:
027: /**
028: * @com.intel.drl.spec_ref
029: *
030: */
031: public interface SSLSession {
032:
033: /**
034: * @com.intel.drl.spec_ref
035: *
036: */
037: public int getApplicationBufferSize();
038:
039: /**
040: * @com.intel.drl.spec_ref
041: *
042: */
043: public String getCipherSuite();
044:
045: /**
046: * @com.intel.drl.spec_ref
047: *
048: */
049: public long getCreationTime();
050:
051: /**
052: * @com.intel.drl.spec_ref
053: *
054: */
055: public byte[] getId();
056:
057: /**
058: * @com.intel.drl.spec_ref
059: *
060: */
061: public long getLastAccessedTime();
062:
063: /**
064: * @com.intel.drl.spec_ref
065: *
066: */
067: public Certificate[] getLocalCertificates();
068:
069: /**
070: * @com.intel.drl.spec_ref
071: *
072: */
073: public Principal getLocalPrincipal();
074:
075: /**
076: * @com.intel.drl.spec_ref
077: *
078: */
079: public int getPacketBufferSize();
080:
081: /**
082: * @com.intel.drl.spec_ref
083: *
084: */
085: public X509Certificate[] getPeerCertificateChain()
086: throws SSLPeerUnverifiedException;
087:
088: /**
089: * @com.intel.drl.spec_ref
090: *
091: */
092: public Certificate[] getPeerCertificates()
093: throws SSLPeerUnverifiedException;
094:
095: /**
096: * @com.intel.drl.spec_ref
097: *
098: */
099: public String getPeerHost();
100:
101: /**
102: * @com.intel.drl.spec_ref
103: *
104: */
105: public int getPeerPort();
106:
107: /**
108: * @com.intel.drl.spec_ref
109: *
110: */
111: public Principal getPeerPrincipal()
112: throws SSLPeerUnverifiedException;
113:
114: /**
115: * @com.intel.drl.spec_ref
116: *
117: */
118: public String getProtocol();
119:
120: /**
121: * @com.intel.drl.spec_ref
122: *
123: */
124: public SSLSessionContext getSessionContext();
125:
126: /**
127: * @com.intel.drl.spec_ref
128: *
129: */
130: public Object getValue(String name);
131:
132: /**
133: * @com.intel.drl.spec_ref
134: *
135: */
136: public String[] getValueNames();
137:
138: /**
139: * @com.intel.drl.spec_ref
140: *
141: */
142: public void invalidate();
143:
144: /**
145: * @com.intel.drl.spec_ref
146: *
147: */
148: public boolean isValid();
149:
150: /**
151: * @com.intel.drl.spec_ref
152: *
153: */
154: public void putValue(String name, Object value);
155:
156: /**
157: * @com.intel.drl.spec_ref
158: *
159: */
160: public void removeValue(String name);
161: }
|