Package | Description |
---|---|
com.nimbusds.jose |
Javascript Object Signing and Encryption (JOSE) classes.
|
com.nimbusds.jose.jwk |
JSON Web Key (JWK) classes.
|
com.nimbusds.jose.proc |
Secure framework for application-specific processing 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 |
KeyLengthException.getAlgorithm()
Returns the algorithm.
|
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,
java.lang.String cty,
java.util.Set<java.lang.String> crit,
java.util.Map<java.lang.String,java.lang.Object> customParams,
Base64URL parsedBase64URL)
Creates a new abstract header.
|
JWEHeader(Algorithm alg,
EncryptionMethod enc,
JOSEObjectType typ,
java.lang.String cty,
java.util.Set<java.lang.String> crit,
java.net.URI jku,
JWK jwk,
java.net.URI x5u,
Base64URL x5t,
Base64URL x5t256,
java.util.List<Base64> x5c,
java.lang.String kid,
ECKey epk,
CompressionAlgorithm zip,
Base64URL apu,
Base64URL apv,
Base64URL p2s,
int p2c,
Base64URL iv,
Base64URL tag,
java.util.Map<java.lang.String,java.lang.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 |
---|---|
Algorithm |
JWK.getAlgorithm()
Gets the intended JOSE algorithm (
alg ) for this JWK. |
Modifier and Type | Method and Description |
---|---|
java.util.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.
|
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. |
JWKMatcher.Builder |
JWKMatcher.Builder.algorithms(Algorithm... algs)
Sets multiple JOSE algorithms to match.
|
Modifier and Type | Method and Description |
---|---|
JWKMatcher.Builder |
JWKMatcher.Builder.algorithms(java.util.Set<Algorithm> algs)
Sets multiple JOSE algorithms to match.
|
Constructor and Description |
---|
ECKey(ECKey.Curve crv,
Base64URL x,
Base64URL y,
Base64URL d,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.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,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public Elliptic Curve JSON Web Key (JWK) with the
specified parameters.
|
ECKey(ECKey.Curve crv,
java.security.interfaces.ECPublicKey pub,
java.security.interfaces.ECPrivateKey priv,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public / private Elliptic Curve JSON Web Key (JWK)
with the specified parameters.
|
ECKey(ECKey.Curve crv,
java.security.interfaces.ECPublicKey pub,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public Elliptic Curve JSON Web Key (JWK) with the
specified parameters.
|
JWK(KeyType kty,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new JSON Web Key (JWK).
|
OctetSequenceKey(Base64URL k,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.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,
java.util.List<RSAKey.OtherPrimesInfo> oth,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.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,
java.util.List<RSAKey.OtherPrimesInfo> oth,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.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,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(Base64URL n,
Base64URL e,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public RSA JSON Web Key (JWK) with the specified
parameters.
|
RSAKey(java.security.interfaces.RSAPublicKey pub,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public RSA JSON Web Key (JWK) with the specified
parameters.
|
RSAKey(java.security.interfaces.RSAPublicKey pub,
java.security.interfaces.RSAMultiPrimePrivateCrtKey priv,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(java.security.interfaces.RSAPublicKey pub,
java.security.interfaces.RSAPrivateCrtKey priv,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
RSAKey(java.security.interfaces.RSAPublicKey pub,
java.security.interfaces.RSAPrivateKey priv,
KeyUse use,
java.util.Set<KeyOperation> ops,
Algorithm alg,
java.lang.String kid,
java.net.URI x5u,
Base64URL x5t,
java.util.List<Base64> x5c)
Creates a new public / private RSA JSON Web Key (JWK) with the
specified parameters.
|
Constructor and Description |
---|
JWKMatcher(java.util.Set<KeyType> types,
java.util.Set<KeyUse> uses,
java.util.Set<KeyOperation> ops,
java.util.Set<Algorithm> algs,
java.util.Set<java.lang.String> ids,
boolean privateOnly,
boolean publicOnly)
Creates a new JSON Web Key (JWK) matcher.
|
Modifier and Type | Method and Description |
---|---|
java.util.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(java.util.Set<Algorithm> algs)
Sets multiple JOSE algorithms to match.
|
Constructor and Description |
---|
JOSEMatcher(java.util.Set<java.lang.Class<? extends JOSEObject>> classes,
java.util.Set<Algorithm> algs,
java.util.Set<EncryptionMethod> encs,
java.util.Set<java.net.URI> jkus,
java.util.Set<java.lang.String> kids)
Creates a new JOSE matcher.
|
Copyright © 2015 Connect2id Ltd.. All Rights Reserved.