public interface SecurityInfo
It provides the certificate, protocol, version, and cipher suite, etc. in use.
CertificateException
,
SecureConnection
,
HttpsConnection
Modifier and Type | Method and Description |
---|---|
String |
getCipherSuite()
Returns the name of the cipher suite in use for the connection.
|
String |
getProtocolName()
Returns the secure protocol name.
|
String |
getProtocolVersion()
Returns the protocol version.
|
Certificate |
getServerCertificate()
Returns the
Certificate used to establish the
secure connection with the server. |
Certificate getServerCertificate()
Certificate
used to establish the
secure connection with the server.Certificate
used to establish the
secure connection with the server.String getProtocolVersion()
For SSL V3 it MUST return "3.0" For TLS 1.0 it MUST return "3.1" For WTLS (WAP-199) it MUST return "1" For WAP TLS Profile and Tunneling Specification it MUST return "3.1"
null
.String getProtocolName()
String
containing the secure protocol identifier;
if TLS (RFC 2246) or WAP TLS Profile and Tunneling (WAP-219-TLS)
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 WTLS (WAP 199) is used for the connection the return value is "WTLS".String getCipherSuite()
String
containing the name of the cipher suite
in use.Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.