This is similar to a org. in that it
contains a name, timestamp, and timezone offset, but differs in the following
ways:
getUserId(), but getEmailAddress() may return
null.getRaw(). This is necessary for losslessly reconstructing the signed
push certificate payload.| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final String | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | PushCertificateIdent(String
OpenPGP User ID; any UTF-8 string. userId, long local time. when, int timezone offset; see tzOffset)getTimeZoneOffset().Construct a new identity from an OpenPGP User ID. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | Returns: the email portion of the User ID, if one was successfully parsed fromgetUserId(), or null.Get the email portion of the User ID |
| public String | Returns: the name portion of the User ID. If no email address would be parsed bygetEmailAddress(), returns the full User ID
with spaces trimmed.Get the name portion of the User ID. |
| public String | |
| public TimeZone | Returns: this person's declared time zone; null if the timezone is unknown.Get this person's declared time zone |
| public int | Returns: this person's declared time zone as minutes east of UTC. If the timezone is to the west of UTC it is negative.Get this person's declared time zone as minutes east of UTC. |
| public String | Returns: the OpenPGP User ID, which may be any string.Get the OpenPGP User ID, which may be any string. |
| public Date | |
| public int | |
| public static PushCertificateIdent | Returns: aorg. object.string to parse. str)Parse an identity from a string. |
| public String |
| raw | back to summary |
|---|---|
| private final String raw | |
| tzOffset | back to summary |
|---|---|
| private final int tzOffset | |
| userId | back to summary |
|---|---|
| private final String userId | |
| when | back to summary |
|---|---|
| private final long when | |
| PushCertificateIdent | back to summary |
|---|---|
| public PushCertificateIdent(String userId, long when, int tzOffset) Construct a new identity from an OpenPGP User ID.
| |
| PushCertificateIdent | back to summary |
|---|---|
| private PushCertificateIdent(String raw, String userId, long when, int tzOffset) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getEmailAddress | back to summary |
|---|---|
| public String getEmailAddress() Get the email portion of the User ID
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name portion of the User ID.
| |
| getRaw | back to summary |
|---|---|
| public String getRaw() Get the raw string from which this identity was parsed. If the string was constructed manually, a suitable canonical string is returned. For the purposes of bytewise comparisons with other OpenPGP IDs, the string must be encoded as UTF-8.
| |
| getTimeZone | back to summary |
|---|---|
| public TimeZone getTimeZone() Get this person's declared time zone
| |
| getTimeZoneOffset | back to summary |
|---|---|
| public int getTimeZoneOffset() Get this person's declared time zone as minutes east of UTC.
| |
| getUserId | back to summary |
|---|---|
| public String getUserId() Get the OpenPGP User ID, which may be any string.
| |
| getWhen | back to summary |
|---|---|
| public Date getWhen() Get the timestamp of the identity.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parse | back to summary |
|---|---|
| public static PushCertificateIdent parse(String str) Parse an identity from a string. Spaces are trimmed when parsing the timestamp and timezone offset, with one exception. The timestamp must be preceded by a single space, and the rest of the string prior to that space (including any additional whitespace) is treated as the OpenPGP User ID.
If either the timestamp or timezone offsets are missing, mimics
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |