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
Exception
public int getApplicationBufferSize()
getApplicationBufferSize
in interface SSLSession
public String getCipherSuite()
getCipherSuite
in interface SSLSession
public long getCreationTime()
getCreationTime
in interface SSLSession
public byte[] getId()
getId
in interface SSLSession
public long getLastAccessedTime()
getLastAccessedTime
in interface SSLSession
public Certificate[] getLocalCertificates()
getLocalCertificates
in interface SSLSession
public Principal getLocalPrincipal()
getLocalPrincipal
in interface SSLSession
public int getPacketBufferSize()
getPacketBufferSize
in interface SSLSession
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
getPeerCertificates
in interface SSLSession
SSLPeerUnverifiedException
public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
getPeerCertificateChain
in interface SSLSession
SSLPeerUnverifiedException
public String getPeerHost()
getPeerHost
in interface SSLSession
public int getPeerPort()
getPeerPort
in interface SSLSession
public Principal getPeerPrincipal() throws SSLPeerUnverifiedException
getPeerPrincipal
in interface SSLSession
SSLPeerUnverifiedException
public String getProtocol()
getProtocol
in interface SSLSession
public SSLSessionContext getSessionContext()
getSessionContext
in interface SSLSession
public void putValue(String s, Object obj)
putValue
in interface SSLSession
public void removeValue(String s)
removeValue
in interface SSLSession
public Object getValue(String s)
getValue
in interface SSLSession
public String[] getValueNames()
getValueNames
in interface SSLSession
public void invalidate()
invalidate
in interface SSLSession
public boolean isValid()
isValid
in interface SSLSession
Copyright © 2019. All rights reserved.