JsonWebKey 类

定义

public class JsonWebKey
继承
java.lang.Object
JsonWebKey

方法

clearMemory()

Clear key materials.

d()

Get the RSA private exponent value.

dp()

Get the RSA Private Key Parameter value.

dq()

Get the RSA Private Key Parameter value.

e()

Get the RSA public exponent value.

equals(JsonWebKey jwk)

Indicates whether some other JsonWebKey is "equal to" this one.

equals(Object obj)
fromAes(SecretKey secretKey)

Converts AES key to JSON web key.

fromRSA(KeyPair keyPair)

Converts RSA key pair to JSON web key.

hashCode()
hasPrivateKey()

Verifies whether the JsonWebKey has private key.

isValid()

Verifies whether the JsonWebKey is valid.

k()

Get Symmetric key value.

keyOps()

Get the key operations.

kid()

Key Identifier.

kty()

Key type, usually RSA. Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct'.

n()

Get the RSA modulus value.

p()

Get the RSA secret prime value.

q()

Get RSA secret prime, with p <q value.

qi()

Get the RSA Private Key Parameter value.

t()

Get HSM Token value, used with Bring Your Own Key.

toAes()

Converts JSON web key to AES key.

toRSA()

Converts JSON web key to RSA key pair.

toRSA(boolean includePrivateParameters)

Converts JSON web key to RSA key pair and include the private key if set to true.

toRSA(boolean includePrivateParameters, Provider provider)

Converts JSON web key to RSA key pair and include the private key if set to true.

toString()
withD(byte[] d)

Set RSA private exponent value.

withDp(byte[] dp)

Set RSA Private Key Parameter value.

withDq(byte[] dq)

Set RSA Private Key Parameter value .

withE(byte[] e)

Set the RSA public exponent value.

withK(byte[] k)

Set the Symmetric key value.

withKeyOps(List<JsonWebKeyOperation> keyOps)

Set the key operations value.

withKid(String kid)

Set the key identifier value.

withKty(JsonWebKeyType kty)

Set the key type value.

withN(byte[] n)

Set the RSA modulus value.

withP(byte[] p)

Set the RSA secret prime value.

withQ(byte[] q)

Set the RSA secret prime, with p <q value.

withQi(byte[] qi)

Set RSA Private Key Parameter value.

withT(byte[] t)

Set HSM Token value, used with Bring Your Own Key.

适用于