Enum BuiltinKEM
- All Implemented Interfaces:
Serializable, Comparable<BuiltinKEM>, org.apache.sshd.common.NamedResource, org.apache.sshd.common.OptionalFeature, org.apache.sshd.common.util.security.KEM
public enum BuiltinKEM
extends Enum<BuiltinKEM>
implements org.apache.sshd.common.util.security.KEM, org.apache.sshd.common.NamedResource, org.apache.sshd.common.OptionalFeature
All built in key encapsulation methods (KEM).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.common.util.security.KEM
org.apache.sshd.common.util.security.KEM.Client, org.apache.sshd.common.util.security.KEM.Server -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface org.apache.sshd.common.util.security.KEM
ML_KEM_1024, ML_KEM_768, SNTRUP_761Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTORFields inherited from interface org.apache.sshd.common.OptionalFeature
FALSE, TRUE -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sshd.common.util.security.KEM.ClientgetName()org.apache.sshd.common.util.security.KEM.Serverbooleanstatic BuiltinKEMReturns the enum constant of this type with the specified name.static BuiltinKEM[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
mlkem768
-
mlkem1024
-
sntrup761
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getName
- Specified by:
getNamein interfaceorg.apache.sshd.common.NamedResource
-
isSupported
public boolean isSupported()- Specified by:
isSupportedin interfaceorg.apache.sshd.common.OptionalFeature
-
getClient
public org.apache.sshd.common.util.security.KEM.Client getClient()- Specified by:
getClientin interfaceorg.apache.sshd.common.util.security.KEM
-
getServer
public org.apache.sshd.common.util.security.KEM.Server getServer()- Specified by:
getServerin interfaceorg.apache.sshd.common.util.security.KEM
-