Uses of Class
com.nimbusds.jose.Algorithm
-
Packages that use Algorithm Package Description com.nimbusds.jose Base Javascript Object Signing and Encryption (JOSE) interfaces and 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 JSON Web Key (JWK) generation utilities.com.nimbusds.jose.proc Framework for application-specific verification and decryption of JOSE objects (with arbitrary payloads). -
-
Uses of Algorithm in com.nimbusds.jose
Subclasses of Algorithm in com.nimbusds.jose Modifier and Type Class Description class
EncryptionMethod
Encryption method name, represents theenc
header parameter in JSON Web Encryption (JWE) objects.class
JWEAlgorithm
JSON Web Encryption (JWE) algorithm name, represents thealg
header parameter in JWE objects.class
JWSAlgorithm
JSON Web Signature (JWS) algorithm name, represents thealg
header parameter in JWS objects.Fields in com.nimbusds.jose declared as Algorithm Modifier and Type Field Description static Algorithm
Algorithm. NONE
No algorithm (unsecured JOSE object without signature / encryption).Methods in com.nimbusds.jose that return Algorithm Modifier and Type Method Description Algorithm
Header. getAlgorithm()
Gets the algorithm (alg
) parameter.Algorithm
KeyLengthException. getAlgorithm()
Returns the algorithm.Algorithm
PlainHeader. getAlgorithm()
Gets the algorithm (alg
) parameter.static Algorithm
Algorithm. parse(String s)
Parses an optional algorithm.static Algorithm
Header. parseAlgorithm(Map<String,Object> json)
Parses an algorithm (alg
) parameter from the specified header JSON object.Constructors in com.nimbusds.jose with parameters of type Algorithm Constructor 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, String skid, Map<String,Object> customParams, Base64URL parsedBase64URL)
Creates a new JSON Web Encryption (JWE) header.KeyLengthException(int expectedLength, Algorithm alg)
Creates a new key length exception.KeyLengthException(Algorithm alg)
Creates a new key length exception. -
Uses of Algorithm in com.nimbusds.jose.jca
Methods in com.nimbusds.jose.jca with parameters of type Algorithm Modifier and Type Method 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. -
Uses of Algorithm in com.nimbusds.jose.jwk
Methods in com.nimbusds.jose.jwk that return Algorithm Modifier and Type Method Description Algorithm
JWK. getAlgorithm()
Gets the intended JOSE algorithm (alg
) for this JWK.Methods in com.nimbusds.jose.jwk that return types with arguments of type Algorithm Modifier and Type Method Description Set<Algorithm>
JWKMatcher. getAlgorithms()
Returns the JOSE algorithms to match.Methods in com.nimbusds.jose.jwk with parameters of type Algorithm Modifier and Type Method Description ECKey.Builder
ECKey.Builder. algorithm(Algorithm alg)
Sets the intended JOSE algorithm (alg
) for the JWK.JWKMatcher.Builder
JWKMatcher.Builder. algorithm(Algorithm alg)
Sets a single JOSE algorithm to match.OctetKeyPair.Builder
OctetKeyPair.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.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.static KeyType
KeyType. forAlgorithm(Algorithm alg)
Infers the key type for the specified JOSE algorithm.Method parameters in com.nimbusds.jose.jwk with type arguments of type Algorithm Modifier and Type Method Description JWKMatcher.Builder
JWKMatcher.Builder. algorithms(Set<Algorithm> algs)
Sets multiple JOSE algorithms to match.Constructors in com.nimbusds.jose.jwk with parameters of type Algorithm Constructor Description 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, 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, 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, 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, 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, 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, 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.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.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, 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(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, 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(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, 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.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. -
Uses of Algorithm in com.nimbusds.jose.jwk.gen
Fields in com.nimbusds.jose.jwk.gen declared as Algorithm Modifier and Type Field Description protected Algorithm
JWKGenerator. alg
The intended JOSE algorithm for the key, optional.Methods in com.nimbusds.jose.jwk.gen with parameters of type Algorithm Modifier and Type Method Description JWKGenerator<T>
JWKGenerator. algorithm(Algorithm alg)
Sets the intended JOSE algorithm (alg
) for the JWK. -
Uses of Algorithm in com.nimbusds.jose.proc
Methods in com.nimbusds.jose.proc that return types with arguments of type Algorithm Modifier and Type Method Description Set<Algorithm>
JOSEMatcher. getAlgorithms()
Returns the JOSE algorithms to match.Methods in com.nimbusds.jose.proc with parameters of type Algorithm Modifier and Type Method 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.Method parameters in com.nimbusds.jose.proc with type arguments of type Algorithm Modifier and Type Method Description JOSEMatcher.Builder
JOSEMatcher.Builder. algorithms(Set<Algorithm> algs)
Sets multiple JOSE algorithms to match.
-