SSLSessionInfopublic class BasicSSLSessionInfo extends java.lang.Object implements SSLSessionInfo
| Constructor | Description |
|---|---|
BasicSSLSessionInfo(byte[] sessionId,
java.lang.String cypherSuite,
java.lang.String certificate) |
|
BasicSSLSessionInfo(java.lang.String sessionId,
java.lang.String cypherSuite,
java.lang.String certificate) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getCipherSuite() |
|
javax.security.cert.X509Certificate[] |
getPeerCertificateChain() |
|
java.security.cert.Certificate[] |
getPeerCertificates() |
Gets the peer certificates.
|
byte[] |
getSessionId() |
|
javax.net.ssl.SSLSession |
getSSLSession() |
|
void |
renegotiate(HttpServerExchange exchange,
org.xnio.SslClientAuthMode sslClientAuthMode) |
Renegotiate in a blocking manner.
|
public BasicSSLSessionInfo(byte[] sessionId,
java.lang.String cypherSuite,
java.lang.String certificate)
throws java.security.cert.CertificateException,
javax.security.cert.CertificateException
sessionId - The SSL session IDcypherSuite - The cypher suite namecertificate - A string representation of the client certificatejava.security.cert.CertificateException - If the client cert could not be decodedjavax.security.cert.CertificateException - If the client cert could not be decodedpublic BasicSSLSessionInfo(java.lang.String sessionId,
java.lang.String cypherSuite,
java.lang.String certificate)
throws java.security.cert.CertificateException,
javax.security.cert.CertificateException
sessionId - The Base64 encoded SSL session IDcypherSuite - The cypher suite namecertificate - A string representation of the client certificatejava.security.cert.CertificateException - If the client cert could not be decodedjavax.security.cert.CertificateException - If the client cert could not be decodedpublic byte[] getSessionId()
getSessionId in interface SSLSessionInfopublic java.lang.String getCipherSuite()
getCipherSuite in interface SSLSessionInfopublic java.security.cert.Certificate[] getPeerCertificates()
throws javax.net.ssl.SSLPeerUnverifiedException
SSLSessionInfogetPeerCertificates in interface SSLSessionInfojavax.net.ssl.SSLPeerUnverifiedExceptionpublic javax.security.cert.X509Certificate[] getPeerCertificateChain()
throws javax.net.ssl.SSLPeerUnverifiedException
getPeerCertificateChain in interface SSLSessionInfojavax.net.ssl.SSLPeerUnverifiedExceptionpublic void renegotiate(HttpServerExchange exchange, org.xnio.SslClientAuthMode sslClientAuthMode) throws java.io.IOException
SSLSessionInforenegotiate in interface SSLSessionInfoexchange - The exchangesslClientAuthMode - The client cert mode to use when renegotiatingjava.io.IOExceptionpublic javax.net.ssl.SSLSession getSSLSession()
getSSLSession in interface SSLSessionInfoCopyright © 2018. All rights reserved.