KeyRep.Type

  • KeyRep.Type is an enum that defines the type of a cryptographic key, inheriting from java.lang.Enum.

  • It includes three enum values: PRIVATE, PUBLIC, and SECRET, representing private, public, and secret keys, respectively.

  • This enum provides methods for comparing, identifying, and describing key types, inherited from its parent classes.

  • The compareTo method allows for ordering key types, while equals, hashCode, and toString facilitate comparisons and representations.

  • Developers can utilize this enum to specify and manipulate the type of cryptographic keys within security applications.

public static final enum KeyRep.Type extends Enum<KeyRep.Type>

Key type.

Inherited Method Summary

Enum Values

public static final KeyRep.Type PRIVATE

Type for private keys.

public static final KeyRep.Type PUBLIC

Type for public keys.

public static final KeyRep.Type SECRET

Type for secret keys.