Enum BuiltInSignatureAlgorithm
- java.lang.Object
-
- java.lang.Enum<BuiltInSignatureAlgorithm>
-
- com.antonzhdanov.apache.sshd.agent.cloud.signature.BuiltInSignatureAlgorithm
-
- All Implemented Interfaces:
SignatureAlgorithm,Serializable,Comparable<BuiltInSignatureAlgorithm>
public enum BuiltInSignatureAlgorithm extends Enum<BuiltInSignatureAlgorithm> implements SignatureAlgorithm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ECDSA_SHA_256ECDSA_SHA_384ECDSA_SHA_512RSA_PCKS1_V15_SHA256RSA_PCKS1_V15_SHA384RSA_PCKS1_V15_SHA512
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SignatureAlgorithmfromKnownAlgorithm(String algo)StringtoOpenSshFormat()static BuiltInSignatureAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static BuiltInSignatureAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RSA_PCKS1_V15_SHA256
public static final BuiltInSignatureAlgorithm RSA_PCKS1_V15_SHA256
-
RSA_PCKS1_V15_SHA384
public static final BuiltInSignatureAlgorithm RSA_PCKS1_V15_SHA384
-
RSA_PCKS1_V15_SHA512
public static final BuiltInSignatureAlgorithm RSA_PCKS1_V15_SHA512
-
ECDSA_SHA_256
public static final BuiltInSignatureAlgorithm ECDSA_SHA_256
-
ECDSA_SHA_384
public static final BuiltInSignatureAlgorithm ECDSA_SHA_384
-
ECDSA_SHA_512
public static final BuiltInSignatureAlgorithm ECDSA_SHA_512
-
-
Method Detail
-
values
public static BuiltInSignatureAlgorithm[] 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 (BuiltInSignatureAlgorithm c : BuiltInSignatureAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltInSignatureAlgorithm 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
-
toOpenSshFormat
public String toOpenSshFormat()
- Specified by:
toOpenSshFormatin interfaceSignatureAlgorithm
-
fromKnownAlgorithm
public static SignatureAlgorithm fromKnownAlgorithm(String algo)
-
-