SSLSessionInfo
public class BasicSSLSessionInfo extends Object implements SSLSessionInfo
Constructor | Description |
---|---|
BasicSSLSessionInfo(byte[] sessionId,
String cypherSuite,
String certificate) |
|
BasicSSLSessionInfo(String sessionId,
String cypherSuite,
String certificate) |
Modifier and Type | Method | Description |
---|---|---|
String |
getCipherSuite() |
|
X509Certificate[] |
getPeerCertificateChain() |
|
Certificate[] |
getPeerCertificates() |
Gets the peer certificates.
|
byte[] |
getSessionId() |
|
SSLSession |
getSSLSession() |
|
void |
renegotiate(HttpServerExchange exchange,
org.xnio.SslClientAuthMode sslClientAuthMode) |
Renegotiate in a blocking manner.
|
public BasicSSLSessionInfo(byte[] sessionId, String cypherSuite, String certificate) throws CertificateException, CertificateException
sessionId
- The SSL session IDcypherSuite
- The cypher suite namecertificate
- A string representation of the client certificateCertificateException
- If the client cert could not be decodedCertificateException
- If the client cert could not be decodedpublic BasicSSLSessionInfo(String sessionId, String cypherSuite, String certificate) throws CertificateException, CertificateException
sessionId
- The Base64 encoded SSL session IDcypherSuite
- The cypher suite namecertificate
- A string representation of the client certificateCertificateException
- If the client cert could not be decodedCertificateException
- If the client cert could not be decodedpublic byte[] getSessionId()
getSessionId
in interface SSLSessionInfo
public String getCipherSuite()
getCipherSuite
in interface SSLSessionInfo
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
SSLSessionInfo
getPeerCertificates
in interface SSLSessionInfo
SSLPeerUnverifiedException
public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
getPeerCertificateChain
in interface SSLSessionInfo
SSLPeerUnverifiedException
public void renegotiate(HttpServerExchange exchange, org.xnio.SslClientAuthMode sslClientAuthMode) throws IOException
SSLSessionInfo
renegotiate
in interface SSLSessionInfo
exchange
- The exchangesslClientAuthMode
- The client cert mode to use when renegotiatingIOException
public SSLSession getSSLSession()
getSSLSession
in interface SSLSessionInfo
Copyright © 2018. All rights reserved.