* @param str
* string to parse.
* @return identity, never null.
- * @since 4.1
*/
public static PushCertificateIdent parse(String str) {
MutableInteger p = new MutableInteger();
* must be encoded as UTF-8.
*
* @return the raw string.
- * @since 4.1
*/
public String getRaw() {
return raw;
}
- /**
- * @return the OpenPGP User ID, which may be any string.
- * @since 4.1
- */
+ /** @return the OpenPGP User ID, which may be any string. */
public String getUserId() {
return userId;
}
* @return the name portion of the User ID. If no email address would be
* parsed by {@link #getEmailAddress()}, returns the full User ID with
* spaces trimmed.
- * @since 4.1
*/
public String getName() {
int nameEnd = userId.indexOf('<');
/**
* @return the email portion of the User ID, if one was successfully parsed
* from {@link #getUserId()}, or null.
- * @since 4.1
*/
public String getEmailAddress() {
int emailBegin = userId.indexOf('<');
return userId.substring(emailBegin + 1, emailEnd);
}
- /**
- * @return the timestamp of the identity.
- * @since 4.1
- */
+ /** @return the timestamp of the identity. */
public Date getWhen() {
return new Date(when);
}
/**
* @return this person's declared time zone; null if the timezone is unknown.
- * @since 4.1
*/
public TimeZone getTimeZone() {
return PersonIdent.getTimeZone(tzOffset);
/**
* @return this person's declared time zone as minutes east of UTC. If the
* timezone is to the west of UTC it is negative.
- * @since 4.1
*/
public int getTimeZoneOffset() {
return tzOffset;
* @since 4.1
*/
public class SignedPushConfig {
- /**
- * Key for {@link Config#get(SectionParser)}.
- *
- * @since 4.1
- */
+ /** Key for {@link Config#get(SectionParser)}. */
public static final SectionParser<SignedPushConfig> KEY =
new SectionParser<SignedPushConfig>() {
public SignedPushConfig parse(Config cfg) {
String certNonceSeed;
int certNonceSlopLimit;
- /**
- * Create a new config with default values disabling push verification.
- *
- * @since 4.1
- */
+ /** Create a new config with default values disabling push verification. */
public SignedPushConfig() {
}
*
* @param seed
* new seed value.
- * @since 4.1
*/
public void setCertNonceSeed(String seed) {
certNonceSeed = seed;
}
- /**
- * @return the configured seed used by the nonce verifier.
- * @since 4.1
- */
+ /** @return the configured seed used by the nonce verifier. */
public String getCertNonceSeed() {
return certNonceSeed;
}
*
* @param limit
* new limit in seconds.
- * @since 4.1
*/
public void setCertNonceSlopLimit(int limit) {
certNonceSlopLimit = limit;
}
- /**
- * @return the configured nonce slop limit.
- * @since 4.1
- */
+ /** @return the configured nonce slop limit. */
public int getCertNonceSlopLimit() {
return certNonceSlopLimit;
}