public final class FakeSSLSession extends Object implements SSLSession
| Constructor and Description |
|---|
FakeSSLSession(Certificate... certificates) |
| Modifier and Type | Method and Description |
|---|---|
int |
getApplicationBufferSize() |
String |
getCipherSuite() |
long |
getCreationTime() |
byte[] |
getId() |
long |
getLastAccessedTime() |
Certificate[] |
getLocalCertificates() |
Principal |
getLocalPrincipal() |
int |
getPacketBufferSize() |
X509Certificate[] |
getPeerCertificateChain() |
Certificate[] |
getPeerCertificates() |
String |
getPeerHost() |
int |
getPeerPort() |
Principal |
getPeerPrincipal() |
String |
getProtocol() |
SSLSessionContext |
getSessionContext() |
Object |
getValue(String s) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isValid() |
void |
putValue(String s,
Object obj) |
void |
removeValue(String s) |
public FakeSSLSession(Certificate... certificates) throws Exception
Exceptionpublic int getApplicationBufferSize()
getApplicationBufferSize in interface SSLSessionpublic String getCipherSuite()
getCipherSuite in interface SSLSessionpublic long getCreationTime()
getCreationTime in interface SSLSessionpublic byte[] getId()
getId in interface SSLSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface SSLSessionpublic Certificate[] getLocalCertificates()
getLocalCertificates in interface SSLSessionpublic Principal getLocalPrincipal()
getLocalPrincipal in interface SSLSessionpublic int getPacketBufferSize()
getPacketBufferSize in interface SSLSessionpublic Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
getPeerCertificates in interface SSLSessionSSLPeerUnverifiedExceptionpublic X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
getPeerCertificateChain in interface SSLSessionSSLPeerUnverifiedExceptionpublic String getPeerHost()
getPeerHost in interface SSLSessionpublic int getPeerPort()
getPeerPort in interface SSLSessionpublic Principal getPeerPrincipal() throws SSLPeerUnverifiedException
getPeerPrincipal in interface SSLSessionSSLPeerUnverifiedExceptionpublic String getProtocol()
getProtocol in interface SSLSessionpublic SSLSessionContext getSessionContext()
getSessionContext in interface SSLSessionpublic void putValue(String s, Object obj)
putValue in interface SSLSessionpublic void removeValue(String s)
removeValue in interface SSLSessionpublic Object getValue(String s)
getValue in interface SSLSessionpublic String[] getValueNames()
getValueNames in interface SSLSessionpublic void invalidate()
invalidate in interface SSLSessionpublic boolean isValid()
isValid in interface SSLSessionCopyright © 2017. All Rights Reserved.