public class BasicSSLSessionInfo extends Object implements SSLSessionInfo
Constructor and Description |
---|
BasicSSLSessionInfo(byte[] sessionId,
String cypherSuite,
String certificate) |
BasicSSLSessionInfo(byte[] sessionId,
String cypherSuite,
String certificate,
Integer keySize) |
BasicSSLSessionInfo(String sessionId,
String cypherSuite,
String certificate) |
BasicSSLSessionInfo(String sessionId,
String cypherSuite,
String certificate,
Integer keySize) |
Modifier and Type | Method and Description |
---|---|
String |
getCipherSuite() |
int |
getKeySize() |
X509Certificate[] |
getPeerCertificateChain()
This method is no longer supported on java 15 and should be avoided.
|
Certificate[] |
getPeerCertificates()
Gets the peer certificates.
|
byte[] |
getSessionId() |
SSLSession |
getSSLSession() |
void |
renegotiate(HttpServerExchange exchange,
SslClientAuthMode sslClientAuthMode)
Renegotiate in a blocking manner.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateKeySize
public BasicSSLSessionInfo(byte[] sessionId, String cypherSuite, String certificate, Integer keySize) throws CertificateException, CertificateException
sessionId
- The SSL session IDcypherSuite
- The cypher suite namecertificate
- A string representation of the client certificatekeySize
- The key-size used by the cypherCertificateException
- If the client cert could not be decodedCertificateException
- If the client cert could not be decodedpublic 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 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 BasicSSLSessionInfo(String sessionId, String cypherSuite, String certificate, Integer keySize) throws CertificateException, CertificateException
sessionId
- The encoded SSL session IDcypherSuite
- The cypher suite namecertificate
- A string representation of the client certificatekeySize
- The key-size used by the cypherCertificateException
- 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 int getKeySize()
getKeySize
in interface SSLSessionInfo
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
SSLSessionInfo
getPeerCertificates
in interface SSLSessionInfo
SSLPeerUnverifiedException
public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
SSLSessionInfo
getPeerCertificateChain
in interface SSLSessionInfo
SSLPeerUnverifiedException
SSLSession.getPeerCertificateChain()
public void renegotiate(HttpServerExchange exchange, 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 © 2021 JBoss by Red Hat. All rights reserved.