Package com.dropbox.core.v2.teamlog
Class Certificate
java.lang.Object
com.dropbox.core.v2.teamlog.Certificate
Certificate details.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCertificate(String subject, String issuer, String issueDate, String expirationDate, String serialNumber, String sha1Fingerprint) Certificate details.Certificate(String subject, String issuer, String issueDate, String expirationDate, String serialNumber, String sha1Fingerprint, String commonName) Certificate details. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCertificate common name.Certificate expiration date.Certificate issue date.Certificate issuer.Certificate serial number.Certificate sha1 fingerprint.Certificate subject.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
subject
-
issuer
-
issueDate
-
expirationDate
-
serialNumber
-
sha1Fingerprint
-
commonName
-
-
Constructor Details
-
Certificate
public Certificate(@Nonnull String subject, @Nonnull String issuer, @Nonnull String issueDate, @Nonnull String expirationDate, @Nonnull String serialNumber, @Nonnull String sha1Fingerprint, @Nullable 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
Certificate
public Certificate(@Nonnull String subject, @Nonnull String issuer, @Nonnull String issueDate, @Nonnull String expirationDate, @Nonnull String serialNumber, @Nonnull 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getSubject
Certificate subject.- Returns:
- value for this field, never
null.
-
getIssuer
Certificate issuer.- Returns:
- value for this field, never
null.
-
getIssueDate
Certificate issue date.- Returns:
- value for this field, never
null.
-
getExpirationDate
Certificate expiration date.- Returns:
- value for this field, never
null.
-
getSerialNumber
Certificate serial number.- Returns:
- value for this field, never
null.
-
getSha1Fingerprint
Certificate sha1 fingerprint.- Returns:
- value for this field, never
null.
-
getCommonName
Certificate common name.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-