Package org.pgpainless.algorithm
Enum CertificationType
- java.lang.Object
-
- java.lang.Enum<CertificationType>
-
- org.pgpainless.algorithm.CertificationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CertificationType>
public enum CertificationType extends java.lang.Enum<CertificationType>
Subset ofSignatureType
, reduced to certification types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASUAL
The issuer of this certification has done some casual verification of the claim of identity.GENERIC
The issuer of this certification does not make any particular assertion as to how well the certifier has checked that the owner of the key is in fact the person described by the User ID.NONE
The issuer of this certification has not done any verification of the claim that the owner of this key is the User ID specified.POSITIVE
The issuer of this certification has done some casual verification of the claim of identity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SignatureType
asSignatureType()
static CertificationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CertificationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERIC
public static final CertificationType GENERIC
The issuer of this certification does not make any particular assertion as to how well the certifier has checked that the owner of the key is in fact the person described by the User ID.
-
NONE
public static final CertificationType NONE
The issuer of this certification has not done any verification of the claim that the owner of this key is the User ID specified.
-
CASUAL
public static final CertificationType CASUAL
The issuer of this certification has done some casual verification of the claim of identity.
-
POSITIVE
public static final CertificationType POSITIVE
The issuer of this certification has done some casual verification of the claim of identity.
-
-
Method Detail
-
values
public static CertificationType[] 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 (CertificationType c : CertificationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CertificationType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
asSignatureType
@Nonnull public SignatureType asSignatureType()
-
-