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,
Curve curve)
Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA)
signer.
|
Modifier and Type | Field and Description |
---|---|
static Curve |
Curve.Ed25519
Ed25519 signature algorithm key pairs.
|
static Curve |
Curve.Ed448
Ed448 signature algorithm key pairs.
|
static Curve |
Curve.P_256
P-256 curve (secp256r1, also called prime256v1, OID =
1.2.840.10045.3.1.7).
|
static Curve |
Curve.P_384
P-384 curve (secp384r1, OID = 1.3.132.0.34).
|
static Curve |
Curve.P_521
P-521 curve (secp521r1).
|
static Curve |
Curve.X25519
X25519 function key pairs.
|
static Curve |
Curve.X448
X448 function key pairs.
|
Modifier and Type | Field and Description |
---|---|
static Set<Curve> |
ECKey.SUPPORTED_CURVES
Supported EC curves.
|
static Set<Curve> |
OctetKeyPair.SUPPORTED_CURVES
Supported Edwards curves.
|
Modifier and Type | Method and Description |
---|---|
static Curve |
Curve.forECParameterSpec(ECParameterSpec spec)
Gets the cryptographic curve for the specified parameter
specification.
|
static Curve |
Curve.forOID(String oid)
Gets the cryptographic curve for the specified object identifier
(OID).
|
static Curve |
Curve.forStdName(String stdName)
Gets the cryptographic curve for the specified standard
name.
|
Curve |
CurveBasedJWK.getCurve()
Returns the cryptographic curve.
|
Curve |
ECKey.getCurve() |
Curve |
OctetKeyPair.getCurve() |
static Curve |
Curve.parse(String s)
Parses a cryptographic curve from the specified string.
|
Modifier and Type | Method and Description |
---|---|
static Set<Curve> |
Curve.forJWSAlgorithm(JWSAlgorithm alg)
Gets the cryptographic curve(s) for the specified JWS algorithm.
|
Set<Curve> |
JWKMatcher.getCurves()
Returns the curves to match (for EC and OKP keys).
|
Modifier and Type | Method and Description |
---|---|
JWKMatcher.Builder |
JWKMatcher.Builder.curve(Curve curve)
Sets a single curve to match (for EC and OKP keys).
|
JWKMatcher.Builder |
JWKMatcher.Builder.curves(Curve... curves)
Sets multiple curves to match (for EC and OKP keys).
|
Modifier and Type | Method and Description |
---|---|
JWKMatcher.Builder |
JWKMatcher.Builder.curves(Set<Curve> curves)
Sets multiple curves to match (for EC and OKP keys).
|
Constructor and Description |
---|
Builder(Curve crv,
Base64URL x)
Creates a new Octet Key Pair JWK builder.
|
Builder(Curve crv,
Base64URL x,
Base64URL y)
Creates a new Elliptic Curve JWK builder.
|
Builder(Curve crv,
ECPublicKey pub)
Creates a new Elliptic Curve JWK builder.
|
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.
|
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.
|
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<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<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.
|
Copyright © 2017 Connect2id Ltd.. All rights reserved.