public static enum XECDHECryptography.SupportedGroup extends Enum<XECDHECryptography.SupportedGroup>
| Modifier and Type | Method and Description |
|---|---|
static XECDHECryptography.SupportedGroup |
fromId(int id)
Gets the group for a given id.
|
static XECDHECryptography.SupportedGroup |
fromPublicKey(PublicKey publicKey)
Gets the group for a given public key.
|
String |
getAlgorithmName() |
int |
getId()
Gets this group's official id as registered with IANA.
|
int |
getKeySizeInBytes()
Returns size of public key in bytes.
|
static List<XECDHECryptography.SupportedGroup> |
getPreferredGroups()
Gets the preferred supported groups.
|
static List<XECDHECryptography.SupportedGroup> |
getUsableGroups()
Gets all
SupportedGroups that can be used on this
platform. |
static boolean |
isEcPublicKey(PublicKey publicKey)
Checks, if provided public key is a EC or XEC key.
|
boolean |
isRecommended() |
static boolean |
isSupported(List<XECDHECryptography.SupportedGroup> list,
List<X509Certificate> certificateChain)
Check, if all ECDSA certificates uses a supported group (curve) from
the provided list.
|
boolean |
isUsable()
Checks whether this group can be used on this platform.
|
static XECDHECryptography.SupportedGroup |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XECDHECryptography.SupportedGroup[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XECDHECryptography.SupportedGroup sect163k1
public static final XECDHECryptography.SupportedGroup sect163r1
public static final XECDHECryptography.SupportedGroup sect163r2
public static final XECDHECryptography.SupportedGroup sect193r1
public static final XECDHECryptography.SupportedGroup sect193r2
public static final XECDHECryptography.SupportedGroup sect233k1
public static final XECDHECryptography.SupportedGroup sect233r1
public static final XECDHECryptography.SupportedGroup sect239k1
public static final XECDHECryptography.SupportedGroup sect283k1
public static final XECDHECryptography.SupportedGroup sect283r1
public static final XECDHECryptography.SupportedGroup sect409k1
public static final XECDHECryptography.SupportedGroup sect409r1
public static final XECDHECryptography.SupportedGroup sect571k1
public static final XECDHECryptography.SupportedGroup sect571r1
public static final XECDHECryptography.SupportedGroup secp160k1
public static final XECDHECryptography.SupportedGroup secp160r1
public static final XECDHECryptography.SupportedGroup secp160r2
public static final XECDHECryptography.SupportedGroup secp192k1
public static final XECDHECryptography.SupportedGroup secp192r1
public static final XECDHECryptography.SupportedGroup secp224k1
public static final XECDHECryptography.SupportedGroup secp224r1
public static final XECDHECryptography.SupportedGroup secp256k1
public static final XECDHECryptography.SupportedGroup secp256r1
public static final XECDHECryptography.SupportedGroup secp384r1
public static final XECDHECryptography.SupportedGroup secp521r1
public static final XECDHECryptography.SupportedGroup brainpoolP256r1
public static final XECDHECryptography.SupportedGroup brainpoolP384r1
public static final XECDHECryptography.SupportedGroup brainpoolP512r1
public static final XECDHECryptography.SupportedGroup ffdhe2048
public static final XECDHECryptography.SupportedGroup ffdhe3072
public static final XECDHECryptography.SupportedGroup ffdhe4096
public static final XECDHECryptography.SupportedGroup ffdhe6144
public static final XECDHECryptography.SupportedGroup ffdhe8192
public static final XECDHECryptography.SupportedGroup arbitrary_explicit_prime_curves
public static final XECDHECryptography.SupportedGroup arbitrary_explicit_char2_curves
public static final XECDHECryptography.SupportedGroup X25519
public static final XECDHECryptography.SupportedGroup X448
public static XECDHECryptography.SupportedGroup[] values()
for (XECDHECryptography.SupportedGroup c : XECDHECryptography.SupportedGroup.values()) System.out.println(c);
public static XECDHECryptography.SupportedGroup valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getId()
public String getAlgorithmName()
public static XECDHECryptography.SupportedGroup fromId(int id)
id - the idnull if no group with the given id
is (currently) registeredpublic static XECDHECryptography.SupportedGroup fromPublicKey(PublicKey publicKey)
publicKey - the public keynull, if no group with the given id
is (currently) registeredpublic static boolean isEcPublicKey(PublicKey publicKey)
publicKey - the public keytrue, if it's a EC of XEC key, false,
otherwise.public static boolean isSupported(List<XECDHECryptography.SupportedGroup> list, List<X509Certificate> certificateChain)
list - list of supported groupscertificateChain - certificate chaintrue, if all ECDSA certificates uses supported group
(curve) from the provided list, false, otherwise.public int getKeySizeInBytes()
public boolean isUsable()
true if the group's domain params are known
and the JRE's crypto provider supports itpublic boolean isRecommended()
public static List<XECDHECryptography.SupportedGroup> getUsableGroups()
SupportedGroups that can be used on this
platform.isUsable()public static List<XECDHECryptography.SupportedGroup> getPreferredGroups()
Copyright © 2023 Eclipse Foundation. All rights reserved.