KeyRep.Type
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eKeyRep.Type\u003c/code\u003e is an enum that defines the type of a cryptographic key, inheriting from \u003ccode\u003ejava.lang.Enum\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes three enum values: \u003ccode\u003ePRIVATE\u003c/code\u003e, \u003ccode\u003ePUBLIC\u003c/code\u003e, and \u003ccode\u003eSECRET\u003c/code\u003e, representing private, public, and secret keys, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThis enum provides methods for comparing, identifying, and describing key types, inherited from its parent classes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecompareTo\u003c/code\u003e method allows for ordering key types, while \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e facilitate comparisons and representations.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize this enum to specify and manipulate the type of cryptographic keys within security applications.\u003c/p\u003e\n"]]],[],null,["# KeyRep.Type\n\npublic static final enum **KeyRep.Type** extends [Enum](../../../reference/java/lang/Enum.html)\\\u003c[KeyRep.Type](../../../reference/java/security/KeyRep.Type.html)\\\u003e \nKey type. \n\n### Inherited Method Summary\n\nFrom class [java.lang.Enum](../../../reference/java/lang/Enum.html) \n\n|----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| final [Object](../../../reference/java/lang/Object.html) | [clone](../../../reference/java/lang/Enum.html#clone())() Throws CloneNotSupportedException. |\n| final int | [compareTo](../../../reference/java/lang/Enum.html#compareTo(E))([KeyRep.Type](../../../reference/java/security/KeyRep.Type.html) o) Compares this enum with the specified object for order. |\n| final boolean | [equals](../../../reference/java/lang/Enum.html#equals(java.lang.Object))([Object](../../../reference/java/lang/Object.html) other) Returns true if the specified object is equal to this enum constant. |\n| final void | [finalize](../../../reference/java/lang/Enum.html#finalize())() enum classes cannot have finalize methods. |\n| final [Class](../../../reference/java/lang/Class.html)\\\u003c[KeyRep.Type](../../../reference/java/security/KeyRep.Type.html)\\\u003e | [getDeclaringClass](../../../reference/java/lang/Enum.html#getDeclaringClass())() Returns the Class object corresponding to this enum constant's enum type. |\n| final int | [hashCode](../../../reference/java/lang/Enum.html#hashCode())() Returns a hash code for this enum constant. |\n| final [String](../../../reference/java/lang/String.html) | [name](../../../reference/java/lang/Enum.html#name())() Returns the name of this enum constant, exactly as declared in its enum declaration. |\n| final int | [ordinal](../../../reference/java/lang/Enum.html#ordinal())() Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero). |\n| [String](../../../reference/java/lang/String.html) | [toString](../../../reference/java/lang/Enum.html#toString())() Returns the name of this enum constant, as contained in the declaration. |\n| static \\\u003cT extends [Enum](../../../reference/java/lang/Enum.html)\\\u003cT\\\u003e\\\u003e T | [valueOf](../../../reference/java/lang/Enum.html#valueOf(java.lang.Class\u003cT\u003e,%20java.lang.String))([Class](../../../reference/java/lang/Class.html)\\\u003cT\\\u003e enumType, [String](../../../reference/java/lang/String.html) name) Returns the enum constant of the specified enum type with the specified name. |\n\nFrom class [java.lang.Object](../../../reference/java/lang/Object.html) \n\n|-------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Object](../../../reference/java/lang/Object.html) | [clone](../../../reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |\n| boolean | [equals](../../../reference/java/lang/Object.html#equals(java.lang.Object))([Object](../../../reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |\n| void | [finalize](../../../reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |\n| final [Class](../../../reference/java/lang/Class.html)\\\u003c?\\\u003e | [getClass](../../../reference/java/lang/Object.html#getClass())() Returns the unique instance of [Class](../../../reference/java/lang/Class.html) that represents this object's class. |\n| int | [hashCode](../../../reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |\n| final void | [notify](../../../reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| final void | [notifyAll](../../../reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| [String](../../../reference/java/lang/String.html) | [toString](../../../reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |\n| final void | [wait](../../../reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |\n\nFrom interface [java.lang.Comparable](../../../reference/java/lang/Comparable.html) \n\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [compareTo](../../../reference/java/lang/Comparable.html#compareTo(T))([KeyRep.Type](../../../reference/java/security/KeyRep.Type.html) o) Compares this object with the specified object for order. |\n\nEnum Values\n-----------\n\n#### public static final KeyRep.Type\n**PRIVATE**\n\nType for private keys. \n\n#### public static final KeyRep.Type\n**PUBLIC**\n\nType for public keys. \n\n#### public static final KeyRep.Type\n**SECRET**\n\nType for secret keys."]]