Uses of Class
com.nimbusds.jose.JOSEException
Packages that use JOSEException
Package
Description
Base Javascript Object Signing and Encryption (JOSE) interfaces and classes.
Implementations of standard Javascript Object Signing and Encryption (JOSE)
algorithms.
JWS signer, JWS verifier, JWE encrypter and JWE decrypter factory
implementations.
Cryptographic primitives for JWS signers, JWS verifiers, JWE encrypters and
JWE decrypters in the
com.nimbusds.jose.crypto package.JSON Web Key (JWK) classes.
JSON Web Key (JWK) generation utilities.
JSON Web Key (JWK) sourcing interface and utilities.
JSON Web Signature (JWS) minting framework.
Framework for application-specific verification and decryption of JOSE
objects (with arbitrary payloads).
Framework for producing JOSE objects (with arbitrary payloads).
Utility interfaces and classes.
Framework for application-specific verification and decryption of JSON Web
Tokens (JWTs).
-
Uses of JOSEException in com.nimbusds.jose
Subclasses of JOSEException in com.nimbusds.joseModifier and TypeClassDescriptionclassAction required for JWS completion.classKey exception.classKey length exception.classKey source exception.classKey type exception.classRemote key source exception.Methods in com.nimbusds.jose that throw JOSEExceptionModifier and TypeMethodDescriptionCompletableJWSObjectSigning.complete()Completes the JWS object signing.byte[]JWEDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) Decrypts the specified cipher text of aJWE Object.voidJWEObject.decrypt(JWEDecrypter decrypter) Decrypts this JWE object with the specified decrypter.voidJWEObjectJSON.decrypt(JWEDecrypter decrypter) Decrypts this JWE object with the specified decrypter.Encrypts the specified clear text of aJWE object.voidJWEObject.encrypt(JWEEncrypter encrypter) Encrypts this JWE object with the specified encrypter.voidJWEObjectJSON.encrypt(JWEEncrypter encrypter) Encrypts this JWE object with the specified encrypter.voidSigns this JWS object with the specified signer.voidSigns this JWS secured object with the specified JWS signer and adds the resulting signature to it.voidJWSObjectJSON.sign(JWSHeader jwsHeader, UnprotectedHeader unprotectedHeader, JWSSigner signer) Signs this JWS secured object with the specified JWS signer and adds the resulting signature to it.Signs the specifiedinputof aJWS object.booleanJWSObject.verify(JWSVerifier verifier) Checks the signature of this JWS object with the specified verifier.booleanJWSObjectJSON.Signature.verify(JWSVerifier verifier) Checks the signature with the specified verifier.booleanVerifies the specifiedsignatureof aJWS object. -
Uses of JOSEException in com.nimbusds.jose.crypto
Methods in com.nimbusds.jose.crypto that throw JOSEExceptionModifier and TypeMethodDescriptionbyte[]AESDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]AESDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) byte[]DirectDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]DirectDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) byte[]ECDH1PUDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]ECDH1PUDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) byte[]ECDH1PUX25519Decrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]ECDH1PUX25519Decrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) byte[]ECDHDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]ECDHDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) byte[]MultiDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]MultiDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) byte[]PasswordBasedDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]PasswordBasedDecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) byte[]RSADecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]RSADecrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) byte[]X25519Decrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Deprecated.byte[]X25519Decrypter.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, byte[] aad) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.static intMACSigner.getMinRequiredSecretLength(JWSAlgorithm alg) Returns the minimal required secret length for the specified HMAC JWS algorithm.booleanbooleanbooleanbooleanConstructors in com.nimbusds.jose.crypto that throw JOSEExceptionModifierConstructorDescriptionECDH1PUDecrypter(ECPrivateKey privateKey, ECPublicKey publicKey) Creates a new Elliptic Curve Diffie-Hellman decrypter.ECDH1PUDecrypter(ECPrivateKey privateKey, ECPublicKey publicKey, Set<String> defCritHeaders) Creates a new Elliptic Curve Diffie-Hellman decrypter.ECDH1PUDecrypter(ECPrivateKey privateKey, ECPublicKey publicKey, Set<String> defCritHeaders, Curve curve) Creates a new Elliptic Curve Diffie-Hellman decrypter.ECDH1PUEncrypter(ECPrivateKey privateKey, ECPublicKey publicKey) Creates a new Elliptic Curve Diffie-Hellman encrypter.ECDH1PUEncrypter(ECPrivateKey privateKey, ECPublicKey publicKey, SecretKey contentEncryptionKey) Creates a new Elliptic Curve Diffie-Hellman encrypter with an optionally specified content encryption key (CEK).ECDH1PUX25519Decrypter(OctetKeyPair privateKey, OctetKeyPair publicKey) Creates a new Curve25519 Elliptic Curve Diffie-Hellman decrypter.ECDH1PUX25519Decrypter(OctetKeyPair privateKey, OctetKeyPair publicKey, Set<String> defCritHeaders) Creates a new Curve25519 Elliptic Curve Diffie-Hellman decrypter.ECDH1PUX25519Encrypter(OctetKeyPair privateKey, OctetKeyPair publicKey) Creates a new Curve25519 Elliptic Curve Diffie-Hellman encrypter.ECDH1PUX25519Encrypter(OctetKeyPair privateKey, OctetKeyPair publicKey, SecretKey contentEncryptionKey) Creates a new Curve25519 Elliptic Curve Diffie-Hellman encrypter.ECDHDecrypter(ECKey ecJWK) Creates a new Elliptic Curve Diffie-Hellman decrypter.ECDHDecrypter(ECPrivateKey privateKey) Creates a new Elliptic Curve Diffie-Hellman decrypter.ECDHDecrypter(ECPrivateKey privateKey, Set<String> defCritHeaders) Creates a new Elliptic Curve Diffie-Hellman decrypter.ECDHDecrypter(PrivateKey privateKey, Set<String> defCritHeaders, Curve curve) Creates a new Elliptic Curve Diffie-Hellman decrypter.ECDHEncrypter(ECKey ecJWK) Creates a new Elliptic Curve Diffie-Hellman encrypter.ECDHEncrypter(ECPublicKey publicKey) Creates a new Elliptic Curve Diffie-Hellman encrypter.ECDHEncrypter(ECPublicKey publicKey, SecretKey contentEncryptionKey) Creates a new Elliptic Curve Diffie-Hellman encrypter with an optionally specified content encryption key (CEK).ECDSASigner(ECKey ecJWK) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) signer.ECDSASigner(ECKey ecJWK, Set<JWSSignerOption> opts) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) signer.ECDSASigner(ECPrivateKey privateKey) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) signer.ECDSASigner(ECPrivateKey privateKey, Set<JWSSignerOption> opts) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) signer.ECDSASigner(PrivateKey privateKey, Curve curve) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) signer.ECDSASigner(PrivateKey privateKey, Curve curve, Set<JWSSignerOption> opts) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) signer.ECDSAVerifier(ECKey ecJWK) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) verifier.ECDSAVerifier(ECPublicKey publicKey) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) verifier.ECDSAVerifier(ECPublicKey publicKey, Set<String> defCritHeaders) Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) verifier.Ed25519Signer(OctetKeyPair privateKey) Creates a new Ed25519 signer.Ed25519Verifier(OctetKeyPair publicKey) Creates a new Ed25519 verifier.Ed25519Verifier(OctetKeyPair publicKey, Set<String> defCritHeaders) Creates a Ed25519 verifier.MACVerifier(byte[] secret) Creates a new Message Authentication (MAC) verifier.MACVerifier(byte[] secret, Set<String> defCritHeaders) Creates a new Message Authentication (MAC) verifier.Creates a new Message Authentication (MAC) verifier.MACVerifier(OctetSequenceKey jwk, Set<String> defCritHeaders) Creates a new Message Authentication (MAC) verifier.MACVerifier(String secretString) Creates a new Message Authentication (MAC) verifier.MACVerifier(SecretKey secretKey) Creates a new Message Authentication (MAC) verifier.MACVerifier(SecretKey secretKey, Set<String> defCritHeaders) Creates a new Message Authentication (MAC) verifier.MultiDecrypter(JWK jwk) Creates a new multi-recipient decrypter.MultiDecrypter(JWK jwk, Set<String> defCritHeaders) Creates a new multi-recipient decrypter.RSADecrypter(RSAKey rsaJWK) Creates a new RSA decrypter.RSAEncrypter(RSAKey rsaJWK) Creates a new RSA encrypter.RSASSASigner(RSAKey rsaJWK) Creates a new RSA Signature-Scheme-with-Appendix (RSASSA) signer.RSASSASigner(RSAKey rsaJWK, boolean allowWeakKey) Deprecated.RSASSASigner(RSAKey rsaJWK, Set<JWSSignerOption> opts) Creates a new RSA Signature-Scheme-with-Appendix (RSASSA) signer.RSASSAVerifier(RSAKey rsaJWK) Creates a new RSA Signature-Scheme-with-Appendix (RSASSA) verifier.X25519Decrypter(OctetKeyPair privateKey) Creates a new Curve25519 Elliptic Curve Diffie-Hellman decrypter.X25519Decrypter(OctetKeyPair privateKey, Set<String> defCritHeaders) Creates a new Curve25519 Elliptic Curve Diffie-Hellman decrypter.X25519Encrypter(OctetKeyPair publicKey) Creates a new Curve25519 Elliptic Curve Diffie-Hellman encrypter.X25519Encrypter(OctetKeyPair publicKey, SecretKey contentEncryptionKey) Creates a new Curve25519 Elliptic Curve Diffie-Hellman encrypter. -
Uses of JOSEException in com.nimbusds.jose.crypto.factories
Methods in com.nimbusds.jose.crypto.factories that throw JOSEExceptionModifier and TypeMethodDescriptionDefaultJWEDecrypterFactory.createJWEDecrypter(JWEHeader header, Key key) DefaultJWSSignerFactory.createJWSSigner(JWK key) DefaultJWSSignerFactory.createJWSSigner(JWK key, JWSAlgorithm alg) DefaultJWSVerifierFactory.createJWSVerifier(JWSHeader header, Key key) -
Uses of JOSEException in com.nimbusds.jose.crypto.impl
Methods in com.nimbusds.jose.crypto.impl that throw JOSEExceptionModifier and TypeMethodDescriptionstatic byte[]DeflateHelper.applyCompression(JWEHeader jweHeader, byte[] bytes) Applies compression to the specified plain text if requested.static byte[]DeflateHelper.applyDecompression(JWEHeader jweHeader, byte[] bytes) Applies decompression to the specified plain text if requested.static byte[]Deprecated.static byte[]Computes a Hash-based Message Authentication Code (HMAC) for the specified secret key and message.static byte[]Computes a Hash-based Message Authentication Code (HMAC) for the specified secret key and message.static byte[]Decrypts the specified cipher text using AES/CBC/PKCS5Padding.static byte[]AESGCM.decrypt(SecretKey secretKey, byte[] iv, byte[] cipherText, byte[] authData, byte[] authTag, Provider provider) Decrypts the specified cipher text using AES/GCM/NoPadding.static byte[]ContentCryptoProvider.decrypt(JWEHeader header, byte[] aad, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, SecretKey cek, JWEJCAContext jcaProvider) Decrypts the specified cipher text.static byte[]ContentCryptoProvider.decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, SecretKey cek, JWEJCAContext jcaProvider) Decrypts the specified cipher text.static byte[]LegacyAESGCM.decrypt(SecretKey secretKey, byte[] iv, byte[] cipherText, byte[] authData, byte[] authTag) Decrypts the specified cipher text using AES/GCM/NoPadding.static byte[]AESCBC.decryptAuthenticated(SecretKey secretKey, byte[] iv, byte[] cipherText, byte[] aad, byte[] authTag, Provider ceProvider, Provider macProvider) Decrypts the specified cipher text using AES/CBC/PKCS5Padding/ HMAC-SHA2.static byte[]XC20P.decryptAuthenticated(SecretKey secretKey, byte[] iv, byte[] cipherText, byte[] authData, byte[] authTag) Decrypts the specified cipher text using XChaCha20_Poly1305.static SecretKeyAESGCMKW.decryptCEK(SecretKey kek, byte[] iv, AuthenticatedCipherText authEncrCEK, int keyLength, Provider provider) Decrypts the specified encrypted Content Encryption Key (CEK).static SecretKeyRSA_OAEP_SHA2.decryptCEK(PrivateKey priv, byte[] encryptedCEK, int shaBitSize, Provider provider) Decrypts the specified encrypted Content Encryption Key (CEK).static SecretKeyRSA_OAEP.decryptCEK(PrivateKey priv, byte[] encryptedCEK, Provider provider) Decrypts the specified encrypted Content Encryption Key (CEK).static SecretKeyRSA1_5.decryptCEK(PrivateKey priv, byte[] encryptedCEK, int keyLength, Provider provider) Decrypts the specified encrypted Content Encryption Key (CEK).static byte[]AESCBC.decryptWithConcatKDF(JWEHeader header, SecretKey secretKey, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag, Provider ceProvider, Provider macProvider) Decrypts the specified cipher text using the deprecated concat KDF from JOSE draft suite 09.protected byte[]ECDH1PUCryptoProvider.decryptWithZ(JWEHeader header, byte[] aad, SecretKey Z, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Decrypts the encrypted JWE parts using the specified shared secret ("Z").protected byte[]ECDHCryptoProvider.decryptWithZ(JWEHeader header, byte[] aad, SecretKey Z, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) Decrypts the encrypted JWE parts using the specified shared secret ("Z").Derives a key from the specified inputs.ConcatKDF.deriveKey(SecretKey sharedSecret, int keyLength, byte[] algID, byte[] partyUInfo, byte[] partyVInfo, byte[] suppPubInfo, byte[] suppPrivInfo) Derives a key from the specified inputs.ConcatKDF.deriveKey(SecretKey sharedSecret, int keyLength, byte[] algID, byte[] partyUInfo, byte[] partyVInfo, byte[] suppPubInfo, byte[] suppPrivInfo, byte[] tag) Derives a key from the specified inputs.static SecretKeyDerives a PBKDF2 key from the specified password and parameters.static SecretKeyECDH1PU.deriveRecipientZ(OctetKeyPair privateKey, OctetKeyPair publicKey, OctetKeyPair epk) Derives a shared secret (also called 'Z') for recipient where Z is the concatenation of Ze and Zs.static SecretKeyECDH1PU.deriveRecipientZ(ECPrivateKey privateKey, ECPublicKey publicKey, ECPublicKey epk, Provider provider) Derives a shared secret (also called 'Z') for sender where Z is the concatenation of Ze and Zs.static SecretKeyECDH1PU.deriveSenderZ(OctetKeyPair privateKey, OctetKeyPair publicKey, OctetKeyPair epk) Derives a shared secret (also called 'Z') for sender where Z is the concatenation of Ze and Zs.static SecretKeyECDH1PU.deriveSenderZ(ECPrivateKey privateKey, ECPublicKey publicKey, ECPrivateKey epk, Provider provider) Derives a shared secret (also called 'Z') for sender where Z is the concatenation of Ze and Zs.static SecretKeyECDH.deriveSharedKey(JWEHeader header, SecretKey Z, ConcatKDF concatKDF) Derives a shared key (via concat KDF).static SecretKeyECDH1PU.deriveSharedKey(JWEHeader header, SecretKey Z, ConcatKDF concatKDF) Derives a shared key (via concat KDF).static SecretKeyECDH1PU.deriveSharedKey(JWEHeader header, SecretKey Z, Base64URL tag, ConcatKDF concatKDF) Derives a shared key (via concat KDF).static SecretKeyECDH.deriveSharedSecret(OctetKeyPair publicKey, OctetKeyPair privateKey) Derives a shared secret (also called 'Z') from the specified ECDH key agreement.static SecretKeyECDH.deriveSharedSecret(ECPublicKey publicKey, PrivateKey privateKey, Provider provider) Derives a shared secret (also called 'Z') from the specified ECDH key agreement.static byte[]Encrypts the specified plain text using AES/CBC/PKCS5Padding.static AuthenticatedCipherTextAESGCM.encrypt(SecretKey secretKey, Container<byte[]> ivContainer, byte[] plainText, byte[] authData, Provider provider) Encrypts the specified plain text using AES/GCM/NoPadding.static JWECryptoPartsContentCryptoProvider.encrypt(JWEHeader header, byte[] clearText, byte[] aad, SecretKey cek, Base64URL encryptedKey, JWEJCAContext jcaProvider) Encrypts the specified clear text (content).static JWECryptoPartsContentCryptoProvider.encrypt(JWEHeader header, byte[] clearText, SecretKey cek, Base64URL encryptedKey, JWEJCAContext jcaProvider) Encrypts the specified clear text (content).static AuthenticatedCipherTextEncrypts the specified plain text using AES/GCM/NoPadding.static AuthenticatedCipherTextAESCBC.encryptAuthenticated(SecretKey secretKey, byte[] iv, byte[] plainText, byte[] aad, Provider ceProvider, Provider macProvider) Encrypts the specified plain text using AES/CBC/PKCS5Padding/ HMAC-SHA2.static AuthenticatedCipherTextXC20P.encryptAuthenticated(SecretKey secretKey, Container<byte[]> ivContainer, byte[] plainText, byte[] authData) Encrypts the specified plain text using XChaCha20_Poly1305.static AuthenticatedCipherTextAESGCMKW.encryptCEK(SecretKey cek, Container<byte[]> iv, SecretKey kek, Provider provider) Encrypts the specified Content Encryption Key (CEK).static byte[]RSA_OAEP_SHA2.encryptCEK(RSAPublicKey pub, SecretKey cek, int shaBitSize, Provider provider) Encrypts the specified Content Encryption Key (CEK).static byte[]RSA_OAEP.encryptCEK(RSAPublicKey pub, SecretKey cek, Provider provider) Encrypts the specified Content Encryption Key (CEK).static byte[]RSA1_5.encryptCEK(RSAPublicKey pub, SecretKey cek, Provider provider) Encrypts the specified Content Encryption Key (CEK).static AuthenticatedCipherTextAESCBC.encryptWithConcatKDF(JWEHeader header, SecretKey secretKey, Base64URL encryptedKey, byte[] iv, byte[] plainText, Provider ceProvider, Provider macProvider) Encrypts the specified plain text using the deprecated concat KDF from JOSE draft suite 09.protected JWECryptoPartsECDH1PUCryptoProvider.encryptWithZ(JWEHeader header, SecretKey Z, byte[] clearText, byte[] aad) Encrypts the specified plaintext using the specified shared secret ("Z").protected JWECryptoPartsECDHCryptoProvider.encryptWithZ(JWEHeader header, SecretKey Z, byte[] clearText, byte[] aad) Encrypts the specified plaintext using the specified shared secret ("Z").voidCriticalHeaderParamsDeferral.ensureHeaderPasses(JWEHeader header) Throws a JOSE exception if the specified JWE header doesn't pass the critical header parameters check.static voidECDSA.ensureLegalSignature(byte[] jwsSignature, JWSAlgorithm jwsAlg) Ensures the specified ECDSA signature is legal.static byte[]PBKDF2.formatSalt(JWEAlgorithm alg, byte[] salt) Formats the specified cryptographic salt for use in PBKDF2.static SecretKeyContentCryptoProvider.generateCEK(EncryptionMethod enc, SecureRandom randomGen) Generates a Content Encryption Key (CEK) for the specified JOSE encryption method.static SecretKeyLegacyConcatKDF.generateCEK(SecretKey key, EncryptionMethod enc, byte[] epu, byte[] epv) Generates a Content Encryption Key (CEK) from the specified Content Master Key (CMK) and JOSE encryption method.static SecretKeyLegacyConcatKDF.generateCIK(SecretKey key, EncryptionMethod enc, byte[] epu, byte[] epv) Generates a Content Integrity Key (CIK) from the specified Content Master Key (CMK) and JOSE encryption method.static JWEAlgorithmJWEHeaderValidation.getAlgorithmAndEnsureNotNull(JWEHeader jweHeader) Gets the JWE algorithm of the specified header and ensure it is notnull.protected SecretKeyBaseJWEProvider.getCEK(EncryptionMethod enc) Returns the content encryption key (CEK) to use.static MacHMAC.getInitMac(String alg, SecretKey secretKey, Provider provider) Gets an initialised Message Authentication Code (MAC) service instance.static MacHMAC.getInitMac(SecretKey secretKey, Provider provider) Gets an initialised Message Authentication Code (MAC) service instance.protected static StringMACProvider.getJCAAlgorithmName(JWSAlgorithm alg) Gets the matching Java Cryptography Architecture (JCA) algorithm name for the specified HMAC-based JSON Web Algorithm (JWA).static intECDSA.getSignatureByteArrayLength(JWSAlgorithm alg) Returns the expected signature byte array length (R + S parts) for the specified ECDSA algorithm.static SignatureECDSA.getSignerAndVerifier(JWSAlgorithm alg, Provider jcaProvider) Creates a new JCA signer / verifier for ECDSA.static SignatureRSASSA.getSignerAndVerifier(JWSAlgorithm alg, Provider provider) Returns a signer and verifier for the specified RSASSA-based JSON Web Algorithm (JWA).static PRFParamsPRFParams.resolve(JWEAlgorithm alg, Provider macProvider) Resolves the Pseudo-Random Function (PRF) parameters for the specified PBES2 JWE algorithm.static JWSAlgorithmECDSA.resolveAlgorithm(Curve curve) Resolves the matching EC DSA algorithm for the specified elliptic curve.static JWSAlgorithmECDSA.resolveAlgorithm(ECKey ecKey) Resolves the matching EC DSA algorithm for the specified EC key (public or private).static ECDH.AlgorithmModeECDH.resolveAlgorithmMode(JWEAlgorithm alg) Resolves the ECDH algorithm mode.static ECDH.AlgorithmModeECDH1PU.resolveAlgorithmMode(JWEAlgorithm alg) Resolves the ECDH algorithm mode.static intECDH.sharedKeyLength(JWEAlgorithm alg, EncryptionMethod enc) Returns the bit length of the shared key (derived via concat KDF) for the specified JWE ECDH algorithm.static intECDH1PU.sharedKeyLength(JWEAlgorithm alg, EncryptionMethod enc) Returns the bit length of the shared key (derived via concat KDF) for the specified JWE ECDH algorithm.static PrivateKeyRSAKeyUtils.toRSAPrivateKey(RSAKey rsaJWK) Returns the private RSA key of the specified RSA JWK.static byte[]ECDSA.transcodeSignatureToConcat(byte[] derSignature, int outputLength) Transcodes the JCA ASN.1/DER-encoded signature into the concatenated R + S format expected by ECDSA JWS.static byte[]ECDSA.transcodeSignatureToDER(byte[] jwsSignature) Transcodes the ECDSA JWS signature into ASN.1/DER format for use by the JCA verifier.static SecretKeyUnwraps the specified encrypted Content Encryption Key (CEK).static voidECDH1PU.validateSameCurve(OctetKeyPair privateKey, OctetKeyPair publicKey) Ensures the private key and public key are from the same curve.static voidECDH1PU.validateSameCurve(ECPrivateKey privateKey, ECPublicKey publicKey) Ensures the private key and public key are from the same curve.static byte[]Wraps the specified Content Encryption Key (CEK).Constructors in com.nimbusds.jose.crypto.impl that throw JOSEExceptionModifierConstructorDescriptionprotectedECDH1PUCryptoProvider(Curve curve, SecretKey cek) Creates a new Elliptic Curve Diffie-Hellman One-Pass Unified Model encryption / decryption provider.protectedECDHCryptoProvider(Curve curve, SecretKey cek) Creates a new Elliptic Curve Diffie-Hellman encryption /decryption provider.protectedCreates a new Elliptic Curve Digital Signature Algorithm (ECDSA) provider. -
Uses of JOSEException in com.nimbusds.jose.jwk
Subclasses of JOSEException in com.nimbusds.jose.jwkMethods in com.nimbusds.jose.jwk that throw JOSEExceptionModifier and TypeMethodDescriptionstatic ThumbprintURIComputes the SHA-256 JWK thumbprint URI for the specified JWK.static Base64URLComputes the SHA-256 thumbprint for the specified JWK.static Base64URLComputes the thumbprint for the specified JWK.static Base64URLThumbprintUtils.compute(String hashAlg, LinkedHashMap<String, ?> params) Computes the thumbprint for the specified required JWK parameters.JWK.computeThumbprint()Computes the SHA-256 thumbprint of this JWK.JWK.computeThumbprint(String hashAlg) Computes the thumbprint of this JWK using the specified hash algorithm.JWK.computeThumbprintURI()Computes the SHA-256 thumbprint URI of this JWK.booleanJWKSet.containsJWK(JWK jwk) Returnstrueif this JWK set contains the specified JWK as public or private key, by comparing its thumbprint with those of the keys in the set.ECKey.Builder.keyIDFromThumbprint()Sets the ID (kid) of the JWK to its SHA-256 JWK thumbprint (RFC 7638).ECKey.Builder.keyIDFromThumbprint(String hashAlg) Sets the ID (kid) of the JWK to its JWK thumbprint (RFC 7638).OctetKeyPair.Builder.keyIDFromThumbprint()Sets the ID (kid) of the JWK to its SHA-256 JWK thumbprint (RFC 7638).OctetKeyPair.Builder.keyIDFromThumbprint(String hashAlg) Sets the ID (kid) of the JWK to its JWK thumbprint (RFC 7638).OctetSequenceKey.Builder.keyIDFromThumbprint()Sets the ID (kid) of the JWK to its SHA-256 JWK thumbprint (RFC 7638).OctetSequenceKey.Builder.keyIDFromThumbprint(String hashAlg) Sets the ID (kid) of the JWK to its JWK thumbprint (RFC 7638).RSAKey.Builder.keyIDFromThumbprint()Sets the ID (kid) of the JWK to its SHA-256 JWK thumbprint (RFC 7638).RSAKey.Builder.keyIDFromThumbprint(String hashAlg) Sets the ID (kid) of the JWK to its JWK thumbprint (RFC 7638).static ECKeyLoads a public / private Elliptic Curve JWK from the specified JCA key store.static JWKLoads a JWK from the specified JCE key store.static OctetSequenceKeyLoads an octet sequence JWK from the specified JCA key store.static RSAKeyLoads a public / private RSA JWK from the specified JCA key store.static ECKeyECKey.parse(X509Certificate cert) Parses a public Elliptic Curve JWK from the specified X.509 certificate.static JWKJWK.parse(X509Certificate cert) static RSAKeyRSAKey.parse(X509Certificate cert) Parses a public RSA JWK from the specified X.509 certificate.static JWKJWK.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 abovestatic JWKJWK.parseFromPEMEncodedX509Cert(String pemEncodedCert) ECKey.toECPrivateKey()Returns a standardjava.security.interfaces.ECPrivateKeyrepresentation of this Elliptic Curve JWK.ECKey.toECPrivateKey(Provider provider) Returns a standardjava.security.interfaces.ECPrivateKeyrepresentation of this Elliptic Curve JWK.ECKey.toECPublicKey()Returns a standardjava.security.interfaces.ECPublicKeyrepresentation of this Elliptic Curve JWK.ECKey.toECPublicKey(Provider provider) Returns a standardjava.security.interfaces.ECPublicKeyrepresentation of this Elliptic Curve JWK.AsymmetricJWK.toKeyPair()Returns a Java key pair representation of this JWK.ECKey.toKeyPair()Returns a standardjava.security.KeyPairrepresentation of this Elliptic Curve JWK.Returns a standardjava.security.KeyPairrepresentation of this Elliptic Curve JWK.OctetKeyPair.toKeyPair()RSAKey.toKeyPair()Returns a standardjava.security.KeyPairrepresentation of this RSA JWK.AsymmetricJWK.toPrivateKey()Returns a Java private key representation of this JWK.ECKey.toPrivateKey()OctetKeyPair.toPrivateKey()RSAKey.toPrivateKey()AsymmetricJWK.toPublicKey()Returns a Java public key representation of the JWK.ECKey.toPublicKey()OctetKeyPair.toPublicKey()RSAKey.toPublicKey()RSAKey.toRSAPrivateKey()Returns a standardjava.security.interfaces.RSAPrivateKeyrepresentation of this RSA JWK.RSAKey.toRSAPublicKey()Returns a standardjava.security.interfaces.RSAPublicKeyrepresentation of this RSA JWK. -
Uses of JOSEException in com.nimbusds.jose.jwk.gen
Methods in com.nimbusds.jose.jwk.gen that throw JOSEException -
Uses of JOSEException in com.nimbusds.jose.jwk.source
Subclasses of JOSEException in com.nimbusds.jose.jwk.sourceModifier and TypeClassDescriptionclassJWK set parse exception, in the context of JWK set retrieval.classJWK set retrieval exception, due to a network issue or the remote server being unavailable.classJWK set unavailable exception.classRate limit reached exception. -
Uses of JOSEException in com.nimbusds.jose.mint
Methods in com.nimbusds.jose.mint that throw JOSEExceptionModifier and TypeMethodDescription -
Uses of JOSEException in com.nimbusds.jose.proc
Methods in com.nimbusds.jose.proc that throw JOSEExceptionModifier and TypeMethodDescriptionJWEDecrypterFactory.createJWEDecrypter(JWEHeader header, Key key) Creates a new JWE decrypter for the specified header and key.JWSVerifierFactory.createJWSVerifier(JWSHeader header, Key key) Creates a new JWS verifier for the specified header and key.DefaultJOSEProcessor.process(JOSEObject joseObject, C context) JOSEProcessor.process(JOSEObject joseObject, C context) Processes the specified JOSE object (unsecured, JWS or JWE).Processes the specified JWE object by decrypting it.Processes the specified JWS object by verifying its signature.JOSEProcessor.process(PlainObject plainObject, C context) Processes the specified unsecured (plain) JOSE object, typically by checking its context.Parses and processes the specified JOSE object (unsecured, JWS or JWE). -
Uses of JOSEException in com.nimbusds.jose.produce
Methods in com.nimbusds.jose.produce that throw JOSEExceptionModifier and TypeMethodDescriptionJWSSignerFactory.createJWSSigner(JWK key) Create a JWS signer based on the key.JWSSignerFactory.createJWSSigner(JWK key, JWSAlgorithm alg) Create a JWS signer based on the key and algorithm. -
Uses of JOSEException in com.nimbusds.jose.util
Subclasses of JOSEException in com.nimbusds.jose.util -
Uses of JOSEException in com.nimbusds.jwt.proc
Methods in com.nimbusds.jwt.proc that throw JOSEExceptionModifier and TypeMethodDescriptionDefaultJWTProcessor.process(EncryptedJWT encryptedJWT, C context) JWTProcessor.process(EncryptedJWT encryptedJWT, C context) Processes the specified encrypted JWT by decrypting it.Processes the specified JWT (unsecured, signed or encrypted).Processes the specified unsecured (plain) JWT, typically by checking its context.Processes the specified signed JWT by verifying its signature.Parses and processes the specified JWT (unsecured, signed or encrypted).