目录

Algorithm

Enum Info

public enum Algorithm

支持的算法。

Enum Value Summary

Enum Value and Description

ES256

ES256算法。

ES384

ES384算法。

ES512

ES512算法。

RS256

RS256算法。

RS384

RS384算法。

RS512

RS512算法。

PS256

PS256算法。

PS384

PS384算法。

PS512

PS512算法。

ECDH

ECDH算法。

Public Method Summary

Qualifier and Type

Method Name and Description

public boolean

isEccAlgorithm()

是否为Ecc类算法。

public boolean

isRsaAlgorithm()

是否为Rsa类算法。

public static Algorithm

fromName(String name)

根据名称生成算法实例。

public static Algorithm

fromCode(int code)

根据整数代号生成算法实例。

public int

encodeToInt()

转换成整数代号。

Public Methods

[h2]isEccAlgorithm

Method

public boolean isEccAlgorithm()

是否为Ecc类算法。

Returns

Type

Description

boolean

当前算法实例采用的是否为Ecc类算法。

[h2]isRsaAlgorithm

Method

public boolean isRsaAlgorithm()

是否为Rsa类算法。

Returns

Type

Description

boolean

当前算法实例采用的是否为Rsa类算法。

[h2]fromName

Method

public Algorithm fromName(String name)

根据名称生成算法实例。

Parameters

Name

Description

name

算法名称。

Returns

Type

Description

Algorithm

算法实例。

[h2]fromCode

Method

public Algorithm fromCode(int code)

根据整数代号生成算法实例。

Parameters

Name

Description

code

算法类型代号。

Returns

Type

Description

Algorithm

算法实例。

[h2]encodeToInt

Method

public int encodeToInt()

转换成整数代号。

Returns

Type

Description

int

整数代号。