Package com.dropbox.core.v2.teamlog
Class Certificate
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.Certificate
-
public class Certificate extends java.lang.Object
Certificate details.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
subject
protected final java.lang.String subject
-
issuer
protected final java.lang.String issuer
-
issueDate
protected final java.lang.String issueDate
-
expirationDate
protected final java.lang.String expirationDate
-
serialNumber
protected final java.lang.String serialNumber
-
sha1Fingerprint
protected final java.lang.String sha1Fingerprint
-
commonName
protected final java.lang.String commonName
-
-
Constructor Detail
-
Certificate
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)
Certificate details.- Parameters:
subject
- Certificate subject. Must not benull
.issuer
- Certificate issuer. Must not benull
.issueDate
- Certificate issue date. Must not benull
.expirationDate
- Certificate expiration date. Must not benull
.serialNumber
- Certificate serial number. Must not benull
.sha1Fingerprint
- Certificate sha1 fingerprint. Must not benull
.commonName
- Certificate common name.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
Certificate
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)
Certificate details.The default values for unset fields will be used.
- Parameters:
subject
- Certificate subject. Must not benull
.issuer
- Certificate issuer. Must not benull
.issueDate
- Certificate issue date. Must not benull
.expirationDate
- Certificate expiration date. Must not benull
.serialNumber
- Certificate serial number. Must not benull
.sha1Fingerprint
- Certificate sha1 fingerprint. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getSubject
public java.lang.String getSubject()
Certificate subject.- Returns:
- value for this field, never
null
.
-
getIssuer
public java.lang.String getIssuer()
Certificate issuer.- Returns:
- value for this field, never
null
.
-
getIssueDate
public java.lang.String getIssueDate()
Certificate issue date.- Returns:
- value for this field, never
null
.
-
getExpirationDate
public java.lang.String getExpirationDate()
Certificate expiration date.- Returns:
- value for this field, never
null
.
-
getSerialNumber
public java.lang.String getSerialNumber()
Certificate serial number.- Returns:
- value for this field, never
null
.
-
getSha1Fingerprint
public java.lang.String getSha1Fingerprint()
Certificate sha1 fingerprint.- Returns:
- value for this field, never
null
.
-
getCommonName
public java.lang.String getCommonName()
Certificate common name.- Returns:
- value for this field, or
null
if not present.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-
-