Package org.eclipse.jgit.transport
Enum PushCertificate.NonceStatus
- java.lang.Object
-
- java.lang.Enum<PushCertificate.NonceStatus>
-
- org.eclipse.jgit.transport.PushCertificate.NonceStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<PushCertificate.NonceStatus>
- Enclosing class:
- PushCertificate
public static enum PushCertificate.NonceStatus extends Enum<PushCertificate.NonceStatus>
Verification result of the nonce returned during push.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD
Nonce is invalid and did not match server's expectations.MISSING
Nonce is required, but was not sent by client.OK
Received nonce matches sent nonce, or is valid within the accepted slop window.SLOP
Received nonce is valid, but outside the accepted slop window.UNSOLICITED
Nonce was not expected, yet client sent one anyway.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PushCertificate.NonceStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static PushCertificate.NonceStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSOLICITED
public static final PushCertificate.NonceStatus UNSOLICITED
Nonce was not expected, yet client sent one anyway.
-
BAD
public static final PushCertificate.NonceStatus BAD
Nonce is invalid and did not match server's expectations.
-
MISSING
public static final PushCertificate.NonceStatus MISSING
Nonce is required, but was not sent by client.
-
OK
public static final PushCertificate.NonceStatus OK
Received nonce matches sent nonce, or is valid within the accepted slop window.
-
SLOP
public static final PushCertificate.NonceStatus SLOP
Received nonce is valid, but outside the accepted slop window.
-
-
Method Detail
-
values
public static PushCertificate.NonceStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PushCertificate.NonceStatus c : PushCertificate.NonceStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PushCertificate.NonceStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-