com.didisoft.pgp
Enum KeyStore.KeyCertificationType

java.lang.Object
  extended by java.lang.Enum<KeyStore.KeyCertificationType>
      extended by com.didisoft.pgp.KeyStore.KeyCertificationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<KeyStore.KeyCertificationType>
Enclosing class:
KeyStore

public static enum KeyStore.KeyCertificationType
extends java.lang.Enum<KeyStore.KeyCertificationType>

Possible certification types for an OpenPGP key

More information can be found in RFC 4880


Enum Constant Summary
CasualCertification
          Casual certification of a User ID and Public-Key packet.
GenericCertification
          Generic certification of a User ID - 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
PersonalCertification
          Personal certification of a User ID and Public-Key packet.
PositiveCertification
          Positive certification of a User ID and Public-Key packet.
 
Method Summary
 int getValue()
          The actual code value for the selected sertification
static KeyStore.KeyCertificationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static KeyStore.KeyCertificationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GenericCertification

public static final KeyStore.KeyCertificationType GenericCertification
Generic certification of a User ID - 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


PersonalCertification

public static final KeyStore.KeyCertificationType PersonalCertification
Personal certification of a User ID and Public-Key packet. The issuer of this certification has not done any verification of the claim that the owner of this key is the User ID specified.


CasualCertification

public static final KeyStore.KeyCertificationType CasualCertification
Casual certification of a User ID and Public-Key packet. The issuer of this certification has done some casual verification of the claim of identity.


PositiveCertification

public static final KeyStore.KeyCertificationType PositiveCertification
Positive certification of a User ID and Public-Key packet. The issuer of this certification has done substantial verification of the claim of identity.

Method Detail

values

public static KeyStore.KeyCertificationType[] 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 (KeyStore.KeyCertificationType c : KeyStore.KeyCertificationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static KeyStore.KeyCertificationType 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 name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
The actual code value for the selected sertification

Returns:
the numeric value of the certification


Copyright © 2006-2017 DidiSoft Ltd. All Rights Reserved.