public class MockSSLSession extends Object implements SSLSession
SSLSession used in testing hostname verifiers and SSL socket factories.| Modifier and Type | Field and Description |
|---|---|
private List<Certificate> |
peerCertificates |
private String |
peerHost |
| Constructor and Description |
|---|
MockSSLSession(List<Certificate> certs,
String host) |
| 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 name) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isValid() |
void |
putValue(String name,
Object value) |
void |
removeValue(String name) |
private List<Certificate> peerCertificates
private String peerHost
public MockSSLSession(List<Certificate> certs, String host)
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
getPeerCertificates in interface SSLSessionSSLPeerUnverifiedExceptionpublic String getPeerHost()
getPeerHost in interface SSLSessionpublic 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 X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
getPeerCertificateChain in interface SSLSessionSSLPeerUnverifiedExceptionpublic 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 Object getValue(String name)
getValue in interface SSLSessionpublic String[] getValueNames()
getValueNames in interface SSLSessionpublic void invalidate()
invalidate in interface SSLSessionpublic boolean isValid()
isValid in interface SSLSessionpublic void putValue(String name, Object value)
putValue in interface SSLSessionpublic void removeValue(String name)
removeValue in interface SSLSessionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.