Package | Description |
---|---|
com.nimbusds.jose |
Javascript Object Signing and Encryption (JOSE) classes.
|
com.nimbusds.jose.jwk |
JSON Web Key (JWK) classes.
|
com.nimbusds.jose.jwk.gen |
Key generation utilities.
|
com.nimbusds.jose.jwk.source |
Interface and utilities for sourcing JSON Web Keys (JWKs).
|
com.nimbusds.jose.proc |
Secure framework for application-specific verification and decryption of
JOSE objects (with arbitrary payloads).
|
Modifier and Type | Method and Description |
---|---|
JWK |
JWEHeader.getEphemeralPublicKey()
Gets the Ephemeral Public Key (
epk ) parameter. |
Modifier and Type | Method and Description |
---|---|
JWEHeader.Builder |
JWEHeader.Builder.ephemeralPublicKey(JWK epk)
Sets the Ephemeral Public Key (
epk ) parameter. |
JWSHeader.Builder |
JWSHeader.Builder.jwk(JWK jwk)
Sets the JSON Web Key (JWK) (
jwk ) parameter. |
JWEHeader.Builder |
JWEHeader.Builder.jwk(JWK jwk)
Sets the JSON Web Key (JWK) (
jwk ) parameter. |
Constructor and Description |
---|
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.
|
JWSHeader(JWSAlgorithm alg,
JOSEObjectType typ,
String cty,
Set<String> crit,
URI jku,
JWK jwk,
URI x5u,
Base64URL x5t,
Base64URL x5t256,
List<Base64> x5c,
String kid,
Map<String,Object> customParams,
Base64URL parsedBase64URL)
Creates a new JSON Web Signature (JWS) header.
|
Modifier and Type | Class and Description |
---|---|
class |
ECKey
Public and private
Elliptic Curve JSON Web Key (JWK). |
class |
OctetKeyPair
Octet key pair JSON Web Key (JWK), used to represent
Edwards-curve keys. |
class |
OctetSequenceKey
Octet sequence JSON Web Key (JWK), used to represent
symmetric keys. |
class |
RSAKey
Public and private
RSA JSON Web Key (JWK). |
Modifier and Type | Method and Description |
---|---|
JWK |
JWKSet.getKeyByKeyId(String kid)
Gets the key from this JSON Web Key (JWK) set as identified by its
Key ID (kid) member.
|
static JWK |
JWK.load(KeyStore keyStore,
String alias,
char[] pin)
Loads a JWK from the specified JCE key store.
|
static JWK |
JWK.parse(net.minidev.json.JSONObject jsonObject)
Parses a JWK from the specified JSON object representation.
|
static JWK |
JWK.parse(String s)
Parses a JWK from the specified JSON object string representation.
|
static JWK |
JWK.parse(X509Certificate cert)
|
static JWK |
JWK.parseFromPEMEncodedObjects(String pemEncodedObjects)
Parses an RSA or EC JWK from the specified string of one or more
PEM-encoded object(s):
X.509 certificate (PEM header: BEGIN CERTIFICATE)
PKCS#1 RSAPublicKey (PEM header: BEGIN RSA PUBLIC KEY)
X.509 SubjectPublicKeyInfo (PEM header: BEGIN PUBLIC KEY)
PKCS#1 RSAPrivateKey (PEM header: BEGIN RSA PRIVATE KEY)
PKCS#8 PrivateKeyInfo (PEM header: BEGIN PRIVATE KEY)
matching pair of the above
|
static JWK |
JWK.parseFromPEMEncodedX509Cert(String pemEncodedCert)
|
abstract JWK |
JWK.toPublicJWK()
Creates a copy of this JWK with all private or sensitive parameters
removed.
|
Modifier and Type | Method and Description |
---|---|
List<JWK> |
JWKSet.getKeys()
Gets the keys (ordered) of this JSON Web Key (JWK) set.
|
List<JWK> |
JWKSelector.select(JWKSet jwkSet)
Selects the keys from the specified JWK set according to the
matcher's criteria.
|
Modifier and Type | Method and Description |
---|---|
static Base64URL |
ThumbprintUtils.compute(JWK jwk)
Computes the SHA-256 thumbprint for the specified JWK.
|
static Base64URL |
ThumbprintUtils.compute(String hashAlg,
JWK jwk)
Computes the thumbprint for the specified JWK.
|
boolean |
JWKMatcher.matches(JWK key)
Returns
true if the specified JWK matches. |
Modifier and Type | Method and Description |
---|---|
static List<Key> |
KeyConverter.toJavaKeys(List<JWK> jwkList)
Converts the specified list of JSON Web Keys (JWK) their standard
Java class representation.
|
Constructor and Description |
---|
JWKSet(JWK key)
Creates a new JSON Web Key (JWK) set with a single key.
|
Constructor and Description |
---|
JWKSet(List<JWK> keys)
Creates a new JSON Web Key (JWK) set with the specified keys.
|
JWKSet(List<JWK> keys,
Map<String,Object> customMembers)
Creates a new JSON Web Key (JWK) set with the specified keys and
additional custom members.
|
Modifier and Type | Class and Description |
---|---|
class |
JWKGenerator<T extends JWK>
Abstract JWK generator.
|
Modifier and Type | Method and Description |
---|---|
List<JWK> |
ImmutableJWKSet.get(JWKSelector jwkSelector,
C context)
Retrieves a list of JWKs matching the specified selector.
|
List<JWK> |
RemoteJWKSet.get(JWKSelector jwkSelector,
C context)
Retrieves a list of JWKs matching the specified selector.
|
List<JWK> |
JWKSource.get(JWKSelector jwkSelector,
C context)
Retrieves a list of JWKs matching the specified selector.
|
List<JWK> |
JWKSecurityContextJWKSet.get(JWKSelector jwkSelector,
JWKSecurityContext context)
Retrieves a list of JWKs matching the specified selector.
|
Modifier and Type | Method and Description |
---|---|
List<JWK> |
JWKSecurityContext.getKeys()
Gets the list of
JWK s. |
Constructor and Description |
---|
JWKSecurityContext(List<JWK> keys)
Constructs a
JWKSecurityContext with the provided
parameters. |
Copyright © 2020 Connect2id Ltd.. All rights reserved.