Enum SignatureAlgorithm

  • All Implemented Interfaces:
    Serializable, Comparable<SignatureAlgorithm>

    public enum SignatureAlgorithm
    extends Enum<SignatureAlgorithm>
    Representation of the supported signature algorithms.
    Author:
    Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
    • Method Detail

      • values

        public static SignatureAlgorithm[] 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 (SignatureAlgorithm c : SignatureAlgorithm.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SignatureAlgorithm 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
      • fromCborObject

        public static SignatureAlgorithm fromCborObject​(com.upokecenter.cbor.CBORObject value)
        Given a CBOR object the method gets the corresponding SignatureAlgorithmId.
        Parameters:
        value - the value
        Returns:
        a SignatureAlgorithmId
      • fromValue

        public static SignatureAlgorithm fromValue​(int value)
        Given a value the method gets the corresponding SignatureAlgorithmId.
        Parameters:
        value - the value
        Returns:
        a SignatureAlgorithmId
      • getCborObject

        public com.upokecenter.cbor.CBORObject getCborObject()
        Gets the signature identifier as a CBOR object.
        Returns:
        a CBORObject
      • getValue

        public int getValue()
        Gets the CBOR value for the signature identifier.
        Returns:
        the value
      • getJcaAlgorithmName

        public String getJcaAlgorithmName()
        Gets the JCA algorithm name for this algorithm.
        Returns:
        the JCA algorithm name
      • getName

        public String getName()
        Gets the COSE/JOSE name of the algorithm.
        Returns:
        the name