Package | Description |
---|---|
com.nimbusds.jose |
Javascript Object Signing and Encryption (JOSE) classes.
|
com.nimbusds.jose.jwk |
JSON Web Key (JWK) classes.
|
Modifier and Type | Class and Description |
---|---|
class |
EncryptionMethod
Encryption method name, represents the
enc header parameter in JSON
Web Encryption (JWE) objects. |
class |
JWEAlgorithm
JSON Web Encryption (JWE) algorithm name, represents the
alg header
parameter in JWE objects. |
class |
JWSAlgorithm
JSON Web Signature (JWS) algorithm name, represents the
alg header
parameter in JWS objects. |
Modifier and Type | Field and Description |
---|---|
static Algorithm |
Algorithm.NONE
No algorithm (plain JOSE object without signature / encryption).
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
PlainHeader.getAlgorithm()
Gets the algorithm (
alg ) parameter. |
Algorithm |
Header.getAlgorithm()
Gets the algorithm (
alg ) parameter. |
static Algorithm |
Header.parseAlgorithm(net.minidev.json.JSONObject json)
Parses an algorithm (
alg ) parameter from the specified
header JSON object. |
Constructor and Description |
---|
Header(Algorithm alg,
JOSEObjectType typ,
String cty,
Set<String> crit,
Map<String,Object> customParams,
Base64URL parsedBase64URL)
Creates a new abstract header.
|
JWEHeader(Algorithm alg,
EncryptionMethod enc,
JOSEObjectType typ,
String cty,
Set<String> crit,
URL jku,
JWK jwk,
URL x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
String kid,
ECKey epk,
CompressionAlgorithm zip,
Base64URL apu,
Base64URL apv,
Base64URL p2s,
int p2c,
Base64URL iv,
Base64URL tag,
Map<String,Object> customParams,
Base64URL parsedBase64URL)
Creates a new JSON Web Encryption (JWE) header.
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
JWK.getAlgorithm()
Gets the intended JOSE algorithm (
alg ) for this JWK. |
Modifier and Type | Method and Description |
---|---|
Set<Algorithm> |
JWKSelector.getAlgorithms()
Gets the selected JOSE algorithms.
|
Modifier and Type | Method and Description |
---|---|
OctetSequenceKey.Builder |
OctetSequenceKey.Builder.algorithm(Algorithm alg)
Sets the intended JOSE algorithm (
alg ) for the JWK. |
ECKey.Builder |
ECKey.Builder.algorithm(Algorithm alg)
Sets the intended JOSE algorithm (
alg ) for the JWK. |
RSAKey.Builder |
RSAKey.Builder.algorithm(Algorithm alg)
Sets the intended JOSE algorithm (
alg ) for the JWK. |
void |
JWKSelector.setAlgorithm(Algorithm alg)
Sets a singled selected JOSE algorithm.
|
void |
JWKSelector.setAlgorithms(Algorithm... algs)
Sets the selected JOSE algorithms.
|
Modifier and Type | Method and Description |
---|---|
void |
JWKSelector.setAlgorithms(Set<Algorithm> algs)
Sets the selected JOSE algorithms.
|
Constructor and Description |
---|
ECKey(ECKey.Curve crv,
Base64URL x,
Base64URL y,
Base64URL d,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
ECKey(ECKey.Curve crv,
Base64URL x,
Base64URL y,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public Elliptic Curve JSON Web Key (JWK) with the
specified parameters.
|
ECKey(ECKey.Curve crv,
ECPublicKey pub,
ECPrivateKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
ECKey(ECKey.Curve crv,
ECPublicKey pub,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public Elliptic Curve JSON Web Key (JWK) with the
specified parameters.
|
JWK(KeyType kty,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new JSON Web Key (JWK).
|
OctetSequenceKey(Base64URL k,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new octet sequence JSON Web Key (JWK) with the specified
parameters.
|
RSAKey(Base64URL n,
Base64URL e,
Base64URL d,
Base64URL p,
Base64URL q,
Base64URL dp,
Base64URL dq,
Base64URL qi,
List<RSAKey.OtherPrimesInfo> oth,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(Base64URL n,
Base64URL e,
Base64URL p,
Base64URL q,
Base64URL dp,
Base64URL dq,
Base64URL qi,
List<RSAKey.OtherPrimesInfo> oth,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(Base64URL n,
Base64URL e,
Base64URL d,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(Base64URL n,
Base64URL e,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public RSA JSON Web Key (JWK) with the specified
parameters.
|
RSAKey(RSAPublicKey pub,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public RSA JSON Web Key (JWK) with the specified
parameters.
|
RSAKey(RSAPublicKey pub,
RSAMultiPrimePrivateCrtKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(RSAPublicKey pub,
RSAPrivateCrtKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(RSAPublicKey pub,
RSAPrivateKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URL x5u,
Base64URL x5t,
List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
Copyright © 2014 Connect2id Ltd.. All Rights Reserved.