Enum Class GordianRSAModulus
java.lang.Object
java.lang.Enum<GordianRSAModulus>
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianRSAModulus
- All Implemented Interfaces:
Serializable,Comparable<GordianRSAModulus>,Constable
Modulus Key lengths.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintObtain the length of the modulus.static GordianRSAModulusgetModulusForInteger(BigInteger pValue) Obtain the modulus for a BigInteger.static GordianRSAModulusReturns the enum constant of this class with the specified name.static GordianRSAModulus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MOD2048
2048. -
MOD1024
1024. -
MOD1536
1536. -
MOD3072
3072. -
MOD4096
4096. -
MOD6144
6144. -
MOD8192
8192.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getLength
public int getLength()Obtain the length of the modulus.- Returns:
- the length
-
getModulusForInteger
Obtain the modulus for a BigInteger.- Parameters:
pValue- the integer- Returns:
- the modulus
-