Class Overview
SSL certificate info (certificate details) class
Summary
Nested Classes |
class |
SslCertificate.DName |
A distinguished name helper class: a 3-tuple of:
- common name (CN),
- organization (O),
- organizational unit (OU)
|
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
Public Constructors
public
SslCertificate
(String issuedTo, String issuedBy, String validNotBefore, String validNotAfter)
Creates a new SSL certificate object
Parameters
issuedTo
| The entity this certificate is issued to |
issuedBy
| The entity that issued this certificate |
validNotBefore
| The not-before date from the certificate validity period |
validNotAfter
| The not-after date from the certificate validity period
|
public
SslCertificate
(X509Certificate certificate)
Creates a new SSL certificate object from an X509 certificate
Parameters
certificate
| X509 certificate
|
Public Methods
Returns
- Issued-by distinguished name or null if none has been set
Returns
- Issued-to distinguished name or null if none has been set
public
String
getValidNotAfter
()
Returns
- Not-after date from the certificate validity period or
"" if none has been set
public
String
getValidNotBefore
()
Returns
- Not-before date from the certificate validity period or
"" if none has been set
Restores the certificate stored in the bundle
Parameters
bundle
| The bundle with the certificate state stored in it |
Returns
- The SSL certificate stored in the bundle or null if fails
Saves the certificate state to a bundle
Parameters
certificate
| The SSL certificate to store |
Returns
- A bundle with the certificate stored in it or null if fails
public
String
toString
()
Returns a string containing a concise, human-readable description of this
object. Subclasses are encouraged to override this method and provide an
implementation that takes into account the object's type and data. The
default implementation simply concatenates the class name, the '@' sign
and a hexadecimal representation of the object's hashCode(),
that is, it is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Returns
- A string representation of this certificate for debugging