public class Certificate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
commonName |
protected java.lang.String |
expirationDate |
protected java.lang.String |
issueDate |
protected java.lang.String |
issuer |
protected java.lang.String |
serialNumber |
protected java.lang.String |
sha1Fingerprint |
protected java.lang.String |
subject |
Constructor and Description |
---|
Certificate(java.lang.String subject,
java.lang.String issuer,
java.lang.String issueDate,
java.lang.String expirationDate,
java.lang.String serialNumber,
java.lang.String sha1Fingerprint)
Certificate details.
|
Certificate(java.lang.String subject,
java.lang.String issuer,
java.lang.String issueDate,
java.lang.String expirationDate,
java.lang.String serialNumber,
java.lang.String sha1Fingerprint,
java.lang.String commonName)
Certificate details.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCommonName()
Certificate common name.
|
java.lang.String |
getExpirationDate()
Certificate expiration date.
|
java.lang.String |
getIssueDate()
Certificate issue date.
|
java.lang.String |
getIssuer()
Certificate issuer.
|
java.lang.String |
getSerialNumber()
Certificate serial number.
|
java.lang.String |
getSha1Fingerprint()
Certificate sha1 fingerprint.
|
java.lang.String |
getSubject()
Certificate subject.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String subject
protected final java.lang.String issuer
protected final java.lang.String issueDate
protected final java.lang.String expirationDate
protected final java.lang.String serialNumber
protected final java.lang.String sha1Fingerprint
protected final java.lang.String commonName
public Certificate(java.lang.String subject, java.lang.String issuer, java.lang.String issueDate, java.lang.String expirationDate, java.lang.String serialNumber, java.lang.String sha1Fingerprint, java.lang.String commonName)
subject
- Certificate subject. Must not be null
.issuer
- Certificate issuer. Must not be null
.issueDate
- Certificate issue date. Must not be null
.expirationDate
- Certificate expiration date. Must not be null
.serialNumber
- Certificate serial number. Must not be null
.sha1Fingerprint
- Certificate sha1 fingerprint. Must not be null
.commonName
- Certificate common name.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public Certificate(java.lang.String subject, java.lang.String issuer, java.lang.String issueDate, java.lang.String expirationDate, java.lang.String serialNumber, java.lang.String sha1Fingerprint)
The default values for unset fields will be used.
subject
- Certificate subject. Must not be null
.issuer
- Certificate issuer. Must not be null
.issueDate
- Certificate issue date. Must not be null
.expirationDate
- Certificate expiration date. Must not be null
.serialNumber
- Certificate serial number. Must not be null
.sha1Fingerprint
- Certificate sha1 fingerprint. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getSubject()
null
.public java.lang.String getIssuer()
null
.public java.lang.String getIssueDate()
null
.public java.lang.String getExpirationDate()
null
.public java.lang.String getSerialNumber()
null
.public java.lang.String getSha1Fingerprint()
null
.public java.lang.String getCommonName()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.