Package org.mozilla.jss.ssl
Class SSLSecurityStatus
java.lang.Object
org.mozilla.jss.ssl.SSLSecurityStatus
This class represents the known state of an SSL connection: what cipher
is being used, how secure it is, and who's on the other end.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) X509Certificate
(package private) String
(package private) String
(package private) String
(package private) int
(package private) int
(package private) int
final int
Deprecated.As of NSS 3.11, FORTEZZA is no longer supported.final int
final int
final int
final int
(package private) String
-
Constructor Summary
ConstructorsConstructorDescriptionSSLSecurityStatus
(int status, String cipher, int sessionKeySize, int sessionSecretSize, String issuer, String subject, String serialNumber, X509Certificate certificate) This constructor is called from the native SSL code It's not necessary for you to call this. -
Method Summary
Modifier and TypeMethodDescriptionQuery which cipher is being used in this session.Retrieve certificate presented by the other other end of the socketGet the distinguished name of the remote certificate's issuerGet the distinguished name of the subject of the remote certificateint
Get exact security status of socket.Get the serial number of the remote certificateint
Query how many bits long the session key is.int
To satisfy export restrictions, some of the session key may be revealed.boolean
Query if security is enabled on this socket.toString()
Get a pretty string to show to a user, summarizing the contents of this object
-
Field Details
-
status
int status -
cipher
String cipher -
sessionKeySize
int sessionKeySize -
sessionSecretSize
int sessionSecretSize -
issuer
String issuer -
subject
String subject -
serialNumber
String serialNumber -
certificate
X509Certificate certificate -
STATUS_NOOPT
public final int STATUS_NOOPT- See Also:
-
STATUS_OFF
public final int STATUS_OFF- See Also:
-
STATUS_ON_HIGH
public final int STATUS_ON_HIGH- See Also:
-
STATUS_ON_LOW
public final int STATUS_ON_LOW- See Also:
-
STATUS_FORTEZZA
Deprecated.As of NSS 3.11, FORTEZZA is no longer supported. STATUS_FORTEZZA is a placeholder for backward compatibility.- See Also:
-
-
Constructor Details
-
SSLSecurityStatus
public SSLSecurityStatus(int status, String cipher, int sessionKeySize, int sessionSecretSize, String issuer, String subject, String serialNumber, X509Certificate certificate) This constructor is called from the native SSL code It's not necessary for you to call this.
-
-
Method Details
-
isSecurityOn
public boolean isSecurityOn()Query if security is enabled on this socket. -
getSecurityStatus
public int getSecurityStatus()Get exact security status of socket. -
getCipher
Query which cipher is being used in this session. -
getSessionKeySize
public int getSessionKeySize()Query how many bits long the session key is. More bits are better. -
getSessionSecretSize
public int getSessionSecretSize()To satisfy export restrictions, some of the session key may be revealed. This function tells you how many bits are actually secret. -
getRemoteIssuer
Get the distinguished name of the remote certificate's issuer -
getRemoteSubject
Get the distinguished name of the subject of the remote certificate -
getSerialNumber
Get the serial number of the remote certificate -
getPeerCertificate
Retrieve certificate presented by the other other end of the socketNot Supported in NSS 2.0 Beta release.
Can be null if peer did not present a certificate.
-
toString
Get a pretty string to show to a user, summarizing the contents of this object
-