| ENUM info |
| public enum Algorithm |
| Enumerates supported algorithms. |
| Type | Desc |
| ES256 | ES256 algorithm. |
| ES384 | ES384 algorithm. |
| ES512 | ES512 algorithm. |
| RS256 | RS256 algorithm. |
| RS384 | RS384 algorithm. |
| RS512 | RS512 algorithm. |
| PS256 | PS256 algorithm. |
| PS384 | PS384 algorithm. |
| PS512 | PS512 algorithm. |
| ECDH | ECDH algorithm. |
| Return type | Method name |
| boolean | Checks whether an ECC algorithm is used. |
| boolean | 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. |
| Method |
| boolean isEccAlgorithm() |
| Checks whether an ECC algorithm is used. |
Return
| type | desc |
| boolean | Whether the current instance of Algorithm is an ECC algorithm. |
| Method |
| boolean isRsaAlgorithm() |
| Checks whether an RSA algorithm is used. |
Return
| type | desc |
| boolean | Whether 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 name | Parameter desc |
| name | Algorithm name. |
Return
| type | desc |
| Algorithm | Instance of Algorithm. |
| Method |
| Algorithm fromCode(int code) |
| Generates an instance of Algorithm based on the integer code. |
Parameters
| Parameter name | Parameter desc |
| code | Algorithm code. |
Return
| type | desc |
| Algorithm | Instance of Algorithm. |