Package | Description |
---|---|
com.nimbusds.jose.crypto |
Implementations of all standard Javascript Object Signing and Encryption
(JOSE) algorithms.
|
com.nimbusds.jose.jwk |
JSON Web Key (JWK) classes.
|
Constructor and Description |
---|
ECDSASigner(PrivateKey privateKey,
ECKey.Curve curve)
Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA)
signer.
|
Modifier and Type | Field and Description |
---|---|
static ECKey.Curve |
ECKey.Curve.P_256
P-256 curve (secp256r1, also called prime256v1,
OID = 1.2.840.10045.3.1.7).
|
static ECKey.Curve |
ECKey.Curve.P_384
P-384 curve (secp384r1, OID = 1.3.132.0.34).
|
static ECKey.Curve |
ECKey.Curve.P_521
P-521 curve (secp521r1).
|
Modifier and Type | Method and Description |
---|---|
static ECKey.Curve |
ECKey.Curve.forECParameterSpec(ECParameterSpec spec)
Gets the cryptographic curve for the specified parameter
specification.
|
static ECKey.Curve |
ECKey.Curve.forJWSAlgoritm(JWSAlgorithm alg)
Gets the cryptographic curve for the specified JWS
algorithm.
|
static ECKey.Curve |
ECKey.Curve.forOID(String oid)
Gets the cryptographic curve for the specified object
identifier (OID).
|
static ECKey.Curve |
ECKey.Curve.forStdName(String stdName)
Gets the cryptographic curve for the specified standard
name.
|
ECKey.Curve |
ECKey.getCurve()
Gets the cryptographic curve.
|
static ECKey.Curve |
ECKey.Curve.parse(String s)
Parses a cryptographic curve from the specified string.
|
Modifier and Type | Method and Description |
---|---|
Set<ECKey.Curve> |
JWKMatcher.getCurves()
Returns the curves to match (for EC keys).
|
Modifier and Type | Method and Description |
---|---|
JWKMatcher.Builder |
JWKMatcher.Builder.curve(ECKey.Curve curve)
Sets a single curve to match (for EC keys).
|
JWKMatcher.Builder |
JWKMatcher.Builder.curves(ECKey.Curve... curves)
Sets multiple curves to match (for EC keys).
|
Modifier and Type | Method and Description |
---|---|
JWKMatcher.Builder |
JWKMatcher.Builder.curves(Set<ECKey.Curve> curves)
Sets multiple curves to match (for EC keys).
|
Constructor and Description |
---|
Builder(ECKey.Curve crv,
Base64URL x,
Base64URL y)
Creates a new Elliptic Curve JWK builder.
|
Builder(ECKey.Curve crv,
ECPublicKey pub)
Creates a new Elliptic Curve JWK builder.
|
ECKey(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(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(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(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(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(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.
|
Constructor and Description |
---|
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<ECKey.Curve> curves)
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,
Set<ECKey.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<ECKey.Curve> curves)
Deprecated.
|
Copyright © 2017 Connect2id Ltd.. All rights reserved.