SSLSessionInfo
public 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 SSLSessionInfo
public java.lang.String getCipherSuite()
getCipherSuite
in interface SSLSessionInfo
public java.security.cert.Certificate[] getPeerCertificates() throws javax.net.ssl.SSLPeerUnverifiedException
SSLSessionInfo
getPeerCertificates
in interface SSLSessionInfo
javax.net.ssl.SSLPeerUnverifiedException
public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException
getPeerCertificateChain
in interface SSLSessionInfo
javax.net.ssl.SSLPeerUnverifiedException
public void renegotiate(HttpServerExchange exchange, org.xnio.SslClientAuthMode sslClientAuthMode) throws java.io.IOException
SSLSessionInfo
renegotiate
in interface SSLSessionInfo
exchange
- The exchangesslClientAuthMode
- The client cert mode to use when renegotiatingjava.io.IOException
public javax.net.ssl.SSLSession getSSLSession()
getSSLSession
in interface SSLSessionInfo
Copyright © 2018. All rights reserved.