Package | Description |
---|---|
com.nimbusds.jose |
Javascript Object Signing and Encryption (JOSE) classes.
|
com.nimbusds.jose.jca |
Java Cryptography Architecture (JCA) context interfaces and classes.
|
com.nimbusds.jose.jwk |
JSON Web Key (JWK) classes.
|
com.nimbusds.jose.jwk.gen |
Key generation utilities.
|
com.nimbusds.jose.proc |
Secure framework for application-specific verification and decryption of
JOSE objects (with arbitrary payloads).
|
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 (unsecured JOSE object without signature / encryption).
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
PlainHeader.getAlgorithm()
Gets the algorithm (
alg ) parameter. |
Algorithm |
KeyLengthException.getAlgorithm()
Returns the algorithm.
|
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,
URI jku,
JWK jwk,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
String kid,
JWK 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.
|
KeyLengthException(Algorithm alg)
Creates a new key length exception.
|
KeyLengthException(int expectedLength,
Algorithm alg)
Creates a new key length exception.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
JCASupport.isSupported(Algorithm alg)
Checks if the specified JOSE algorithm is supported by the default
system JCA provider(s).
|
static boolean |
JCASupport.isSupported(Algorithm alg,
Provider provider)
Checks if a JOSE algorithm is supported by the the specified JCA
provider.
|
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> |
JWKMatcher.getAlgorithms()
Returns the JOSE algorithms to match.
|
Modifier and Type | Method and Description |
---|---|
JWKMatcher.Builder |
JWKMatcher.Builder.algorithm(Algorithm alg)
Sets a single JOSE algorithm to match.
|
RSAKey.Builder |
RSAKey.Builder.algorithm(Algorithm alg)
Sets the intended JOSE algorithm (
alg ) for the JWK. |
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. |
OctetKeyPair.Builder |
OctetKeyPair.Builder.algorithm(Algorithm alg)
Sets the intended JOSE algorithm (
alg ) for the JWK. |
JWKMatcher.Builder |
JWKMatcher.Builder.algorithms(Algorithm... algs)
Sets multiple JOSE algorithms to match.
|
static KeyType |
KeyType.forAlgorithm(Algorithm alg)
Infers the key type for the specified JOSE algorithm.
|
Modifier and Type | Method and Description |
---|---|
JWKMatcher.Builder |
JWKMatcher.Builder.algorithms(Set<Algorithm> algs)
Sets multiple JOSE algorithms to match.
|
Constructor and Description |
---|
ECKey(Curve crv,
Base64URL x,
Base64URL y,
Base64URL d,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
ECKey(Curve crv,
Base64URL x,
Base64URL y,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public Elliptic Curve JSON Web Key (JWK) with the
specified parameters.
|
ECKey(Curve crv,
Base64URL x,
Base64URL y,
PrivateKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
ECKey(Curve crv,
ECPublicKey pub,
ECPrivateKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
ECKey(Curve crv,
ECPublicKey pub,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public Elliptic Curve JSON Web Key (JWK) with the
specified parameters.
|
ECKey(Curve crv,
ECPublicKey pub,
PrivateKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
JWK(KeyType kty,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new JSON Web Key (JWK).
|
OctetKeyPair(Curve crv,
Base64URL x,
Base64URL d,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public / private Octet Key Pair JSON Web Key (JWK)
with the specified parameters.
|
OctetKeyPair(Curve crv,
Base64URL x,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public Octet Key Pair JSON Web Key (JWK) with the
specified parameters.
|
OctetSequenceKey(Base64URL k,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
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,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c)
Deprecated.
|
RSAKey(Base64URL n,
Base64URL e,
Base64URL d,
Base64URL p,
Base64URL q,
Base64URL dp,
Base64URL dq,
Base64URL qi,
List<RSAKey.OtherPrimesInfo> oth,
PrivateKey prv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
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,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
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,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
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,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
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,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public RSA JSON Web Key (JWK) with the specified
parameters.
|
RSAKey(RSAPublicKey pub,
PrivateKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(RSAPublicKey pub,
RSAMultiPrimePrivateCrtKey priv,
KeyUse use,
Set<KeyOperation> ops,
Algorithm alg,
String kid,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
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,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
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,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
KeyStore ks)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
Constructor and Description |
---|
JWKMatcher(Set<KeyType> types,
Set<KeyUse> uses,
Set<KeyOperation> ops,
Set<Algorithm> algs,
Set<String> ids,
boolean privateOnly,
boolean publicOnly)
Deprecated.
|
JWKMatcher(Set<KeyType> types,
Set<KeyUse> uses,
Set<KeyOperation> ops,
Set<Algorithm> algs,
Set<String> ids,
boolean hasUse,
boolean hasID,
boolean privateOnly,
boolean publicOnly,
int minSizeBits,
int maxSizeBits,
Set<Integer> sizesBits,
Set<Curve> curves)
Deprecated.
|
JWKMatcher(Set<KeyType> types,
Set<KeyUse> uses,
Set<KeyOperation> ops,
Set<Algorithm> algs,
Set<String> ids,
boolean hasUse,
boolean hasID,
boolean privateOnly,
boolean publicOnly,
int minSizeBits,
int maxSizeBits,
Set<Integer> sizesBits,
Set<Curve> curves,
Set<Base64URL> x5tS256s)
Creates a new JSON Web Key (JWK) matcher.
|
JWKMatcher(Set<KeyType> types,
Set<KeyUse> uses,
Set<KeyOperation> ops,
Set<Algorithm> algs,
Set<String> ids,
boolean privateOnly,
boolean publicOnly,
int minSizeBits,
int maxSizeBits)
Deprecated.
|
JWKMatcher(Set<KeyType> types,
Set<KeyUse> uses,
Set<KeyOperation> ops,
Set<Algorithm> algs,
Set<String> ids,
boolean privateOnly,
boolean publicOnly,
int minSizeBits,
int maxSizeBits,
Set<Curve> curves)
Deprecated.
|
JWKMatcher(Set<KeyType> types,
Set<KeyUse> uses,
Set<KeyOperation> ops,
Set<Algorithm> algs,
Set<String> ids,
boolean privateOnly,
boolean publicOnly,
int minSizeBits,
int maxSizeBits,
Set<Integer> sizesBits,
Set<Curve> curves)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected Algorithm |
JWKGenerator.alg
The intended JOSE algorithm for the key, optional.
|
Modifier and Type | Method and Description |
---|---|
JWKGenerator<T> |
JWKGenerator.algorithm(Algorithm alg)
Sets the intended JOSE algorithm (
alg ) for the JWK. |
Modifier and Type | Method and Description |
---|---|
Set<Algorithm> |
JOSEMatcher.getAlgorithms()
Returns the JOSE algorithms to match.
|
Modifier and Type | Method and Description |
---|---|
JOSEMatcher.Builder |
JOSEMatcher.Builder.algorithm(Algorithm alg)
Sets a single JOSE algorithm to match.
|
JOSEMatcher.Builder |
JOSEMatcher.Builder.algorithms(Algorithm... algs)
Sets multiple JOSE algorithms to match.
|
Modifier and Type | Method and Description |
---|---|
JOSEMatcher.Builder |
JOSEMatcher.Builder.algorithms(Set<Algorithm> algs)
Sets multiple JOSE algorithms to match.
|
Constructor and Description |
---|
JOSEMatcher(Set<Class<? extends JOSEObject>> classes,
Set<Algorithm> algs,
Set<EncryptionMethod> encs,
Set<URI> jkus,
Set<String> kids)
Creates a new JOSE matcher.
|
Copyright © 2018 Connect2id Ltd.. All rights reserved.