Enum BuiltinKEM

java.lang.Object
java.lang.Enum<BuiltinKEM>
org.apache.sshd.common.kex.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
    Enum Constant
    Description
     
     
     
  • Field Summary

    Fields inherited from interface org.apache.sshd.common.util.security.KEM

    ML_KEM_1024, ML_KEM_768, SNTRUP_761

    Fields inherited from interface org.apache.sshd.common.NamedResource

    BY_NAME_COMPARATOR, NAME_EXTRACTOR

    Fields inherited from interface org.apache.sshd.common.OptionalFeature

    FALSE, TRUE
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.sshd.common.util.security.KEM.Client
     
     
    org.apache.sshd.common.util.security.KEM.Server
     
    boolean
     
    static BuiltinKEM
    Returns the enum constant of this type with the specified name.
    static BuiltinKEM[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • mlkem768

      public static final BuiltinKEM mlkem768
    • mlkem1024

      public static final BuiltinKEM mlkem1024
    • sntrup761

      public static final BuiltinKEM sntrup761
  • Method Details

    • values

      public static BuiltinKEM[] 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

      public static BuiltinKEM 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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.sshd.common.NamedResource
    • isSupported

      public boolean isSupported()
      Specified by:
      isSupported in interface org.apache.sshd.common.OptionalFeature
    • getClient

      public org.apache.sshd.common.util.security.KEM.Client getClient()
      Specified by:
      getClient in interface org.apache.sshd.common.util.security.KEM
    • getServer

      public org.apache.sshd.common.util.security.KEM.Server getServer()
      Specified by:
      getServer in interface org.apache.sshd.common.util.security.KEM