目录

ENUM info
public enum Algorithm
Enumerates supported algorithms.

Enumeration Summary

TypeDesc
ES256ES256 algorithm.
ES384ES384 algorithm.
ES512ES512 algorithm.
RS256RS256 algorithm.
RS384RS384 algorithm.
RS512RS512 algorithm.
PS256PS256 algorithm.
PS384PS384 algorithm.
PS512PS512 algorithm.
ECDHECDH algorithm.

Public Methods Summary

Return typeMethod name
boolean

isEccAlgorithm()

Checks whether an ECC algorithm is used.

boolean

isRsaAlgorithm()

Checks whether an RSA algorithm is used.

Algorithm

fromName(String name)

Generates an instance of Algorithm based on the name.

Algorithm

fromCode(int code)

Generates an instance of Algorithm based on the integer code.

Public Methods

Method
boolean isEccAlgorithm()
Checks whether an ECC algorithm is used.

Return

typedesc
booleanWhether the current instance of Algorithm is an ECC algorithm.
Method
boolean isRsaAlgorithm()
Checks whether an RSA algorithm is used.

Return

typedesc
booleanWhether the current instance of Algorithm is an RSA algorithm.
Method
Algorithm fromName(String name)
Generates an instance of Algorithm based on the name.

Parameters

Parameter nameParameter desc
nameAlgorithm name.


Return

typedesc
AlgorithmInstance of Algorithm.
Method
Algorithm fromCode(int code)
Generates an instance of Algorithm based on the integer code.

Parameters

Parameter nameParameter desc
codeAlgorithm code.

Return

typedesc
AlgorithmInstance of Algorithm.