public class SSLSecurityStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
STATUS_FORTEZZA
Deprecated.
As of NSS 3.11, FORTEZZA is no longer supported.
STATUS_FORTEZZA is a placeholder for backward compatibility.
|
int |
STATUS_NOOPT |
int |
STATUS_OFF |
int |
STATUS_ON_HIGH |
int |
STATUS_ON_LOW |
Constructor and Description |
---|
SSLSecurityStatus(int status,
java.lang.String cipher,
int sessionKeySize,
int sessionSecretSize,
java.lang.String issuer,
java.lang.String subject,
java.lang.String serialNumber,
X509Certificate certificate)
This constructor is called from the native SSL code
It's not necessary for you to call this.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCipher()
Query which cipher is being used in this session.
|
X509Certificate |
getPeerCertificate()
Retrieve certificate presented by the other other end
of the socket Not Supported in NSS 2.0 Beta release.
|
java.lang.String |
getRemoteIssuer()
Get the distinguished name of the remote certificate's issuer
|
java.lang.String |
getRemoteSubject()
Get the distinguished name of the subject of the remote certificate
|
int |
getSecurityStatus()
Get exact security status of socket.
|
java.lang.String |
getSerialNumber()
Get the serial number of the remote certificate
|
int |
getSessionKeySize()
Query how many bits long the session key is.
|
int |
getSessionSecretSize()
To satisfy export restrictions, some of the session key may
be revealed.
|
boolean |
isSecurityOn()
Query if security is enabled on this socket.
|
java.lang.String |
toString()
Deprecated.
As of NSS 3.11, FORTEZZA is no longer supported.
This is just a placeholder for backward compatibility.
|
public final int STATUS_NOOPT
public final int STATUS_OFF
public final int STATUS_ON_HIGH
public final int STATUS_ON_LOW
public final int STATUS_FORTEZZA
public SSLSecurityStatus(int status, java.lang.String cipher, int sessionKeySize, int sessionSecretSize, java.lang.String issuer, java.lang.String subject, java.lang.String serialNumber, X509Certificate certificate)
public boolean isSecurityOn()
public int getSecurityStatus()
public java.lang.String getCipher()
public int getSessionKeySize()
public int getSessionSecretSize()
public java.lang.String getRemoteIssuer()
public java.lang.String getRemoteSubject()
public java.lang.String getSerialNumber()
public X509Certificate getPeerCertificate()
Not Supported in NSS 2.0 Beta release.
Can be null if peer did not present a certificate.
public java.lang.String toString()
toString
in class java.lang.Object