Package io.vertx.ext.auth.webauthn
Enum PublicKeyCredential
- java.lang.Object
-
- java.lang.Enum<PublicKeyCredential>
-
- io.vertx.ext.auth.webauthn.PublicKeyCredential
-
- All Implemented Interfaces:
Serializable
,Comparable<PublicKeyCredential>
public enum PublicKeyCredential extends Enum<PublicKeyCredential>
PublicKeyCredential https://www.iana.org/assignments/cose/cose.xhtml#algorithms
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
coseId()
static PublicKeyCredential
valueOf(int coseId)
Returns the enum constant of this type with the specified name.static PublicKeyCredential
valueOf(String name)
Returns the enum constant of this type with the specified name.static PublicKeyCredential[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ES256
public static final PublicKeyCredential ES256
-
ES384
public static final PublicKeyCredential ES384
-
ES512
public static final PublicKeyCredential ES512
-
PS256
public static final PublicKeyCredential PS256
-
PS384
public static final PublicKeyCredential PS384
-
PS512
public static final PublicKeyCredential PS512
-
ES256K
public static final PublicKeyCredential ES256K
-
RS256
public static final PublicKeyCredential RS256
-
RS384
public static final PublicKeyCredential RS384
-
RS512
public static final PublicKeyCredential RS512
-
RS1
public static final PublicKeyCredential RS1
-
EdDSA
public static final PublicKeyCredential EdDSA
-
-
Method Detail
-
values
public static PublicKeyCredential[] 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 (PublicKeyCredential c : PublicKeyCredential.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PublicKeyCredential 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
-
valueOf
public static PublicKeyCredential valueOf(int coseId)
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:
coseId
- 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
-
coseId
public int coseId()
-
-