public interface SecurityInfo
It provides the certificate, protocol, version, and cipher suite, etc. in use.
CertificateException
,
SecureConnection
,
HttpsConnection
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCipherSuite()
Returns the name of the cipher suite in use for the connection.
|
Certificate |
getClientCertificate()
Returns the Client
Certificate used to establish the
secure connection with the server. |
java.lang.String |
getProtocolName()
Returns the secure protocol name.
|
java.lang.String |
getProtocolVersion()
Returns the protocol version.
|
Certificate |
getServerCertificate()
Returns the Server
Certificate used to establish the
secure connection. |
java.lang.String getCipherSuite()
If the cipher suite is none one of the above, the name returned is non-null and its contents are not defined by this specification. For non-TLS implementations the cipher suite name should be selected according to the actual key exchange, cipher, and hash combination used to establish the connection, so that regardless of whether the secure connection uses DTLS, SSL V3 or TLS 1.0, TLS 1.1, TLS 1.2, equivalent cipher suites have the same name.
String
containing the name of the cipher suite
in use.Certificate getClientCertificate()
Certificate
used to establish the
secure connection with the server. If no client authentication is performed,
this method returns null.Certificate
used to establish the
secure connection.java.lang.String getProtocolName()
String
containing the secure protocol identifier;
if TLS 1.0 (RFC 2246), TLS 1.1 (RFC 4346), TLS 1.2 (RFC 5246)
is used for the connection the return value is "TLS";
if SSL V3 (The SSL Protocol Version 3.0) is used for the connection;
the return value is "SSL");
If DTLS 1.2 (RFC 6347) is used for the connection the return value is "DTLS1.2",
for DTLS 1.0 (RFC 4347) the return value is "DTLS1.0".java.lang.String getProtocolVersion()
null
.Certificate getServerCertificate()
Certificate
used to establish the
secure connection.Certificate
used to establish the
secure connection with the server.Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.