Enum OpenPgpTrustStore.Trust
- java.lang.Object
-
- java.lang.Enum<OpenPgpTrustStore.Trust>
-
- org.jivesoftware.smackx.ox.store.definition.OpenPgpTrustStore.Trust
-
- All Implemented Interfaces:
Serializable
,Comparable<OpenPgpTrustStore.Trust>
- Enclosing interface:
- OpenPgpTrustStore
public static enum OpenPgpTrustStore.Trust extends Enum<OpenPgpTrustStore.Trust>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpenPgpTrustStore.Trust
valueOf(String name)
Returns the enum constant of this type with the specified name.static OpenPgpTrustStore.Trust[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
trusted
public static final OpenPgpTrustStore.Trust trusted
The user explicitly trusts the key.
-
untrusted
public static final OpenPgpTrustStore.Trust untrusted
The user explicitly distrusts the key.
-
undecided
public static final OpenPgpTrustStore.Trust undecided
The user didn't yet describe, whether to trust the key or not.
-
-
Method Detail
-
values
public static OpenPgpTrustStore.Trust[] 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 (OpenPgpTrustStore.Trust c : OpenPgpTrustStore.Trust.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenPgpTrustStore.Trust 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
-
-