Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/felx/nimbus-jose-jwt
/ functions
Functions
1,840 in github.com/felx/nimbus-jose-jwt
⨍
Functions
1,840
◇
Types & classes
315
↓ 517 callers
Method
build
Builds a new Elliptic Curve JWK. @return The Elliptic Curve JWK. @throws IllegalStateException If the JWK parameters were
src/main/java/com/nimbusds/jose/jwk/ECKey.java:560
↓ 486 callers
Method
toString
@see #toJSONString
src/main/java/com/nimbusds/jose/jwk/JWK.java:482
↓ 359 callers
Method
size
Returns the size of this JWK. @return The JWK size, in bits.
src/main/java/com/nimbusds/jose/jwk/JWK.java:399
↓ 303 callers
Method
add
(final T alg)
src/main/java/com/nimbusds/jose/AlgorithmFamily.java:52
↓ 301 callers
Method
equals
(final Object object)
src/main/java/com/nimbusds/jose/jwk/Curve.java:222
↓ 295 callers
Method
getState
Returns the state of this JWE object. @return The state.
src/main/java/com/nimbusds/jose/JWEObject.java:274
↓ 224 callers
Method
getJCAContext
Returns the Java Cryptography Architecture (JCA) context. May be used to set a specific JCA security provider or secure random generator. @return The
src/main/java/com/nimbusds/jose/jca/JCAAware.java:38
↓ 206 callers
Method
get
Retrieves a list of JWKs matching the specified selector. @param jwkSelector A JWK selector. Must not be {@code null}. @param context Optional co
src/main/java/com/nimbusds/jose/jwk/source/JWKSource.java:51
↓ 206 callers
Method
getEncoded
()
src/test/java/com/nimbusds/jose/crypto/RSA1_5Test.java:642
↓ 184 callers
Method
getInstance
Returns a BouncyCastle JCA provider instance. @return The BouncyCastle JCA provider instance.
src/main/java/com/nimbusds/jose/crypto/bc/BouncyCastleProviderSingleton.java:52
↓ 177 callers
Method
supportedEncryptionMethods
Returns the names of the supported encryption methods by the JWE provier. These correspond to the {@code enc} JWE header parameter. @return The suppo
src/main/java/com/nimbusds/jose/JWEProvider.java:53
↓ 172 callers
Method
getInstance
Instantiates a cipher with an (optional) JCA provider. @param name The name of the cipher. Must not be {@code null}. @param provider The JCA prov
src/main/java/com/nimbusds/jose/crypto/CipherHelper.java:46
↓ 150 callers
Method
keyID
Sets the ID ({@code kid}) of the JWK. The key ID can be used to match a specific key. This can be used, for instance, to choose a key within a {@link
src/main/java/com/nimbusds/jose/jwk/ECKey.java:418
↓ 145 callers
Method
getKeyID
Gets the ID ({@code kid}) of this JWK. The key ID can be used to match a specific key. This can be used, for instance, to choose a key within a {@link
src/main/java/com/nimbusds/jose/jwk/JWK.java:260
↓ 128 callers
Method
encode
Base64URL-encodes the specified byte array. @param bytes The byte array to encode. Must not be {@code null}. @return The resulting Base64URL object.
src/main/java/com/nimbusds/jose/util/Base64URL.java:79
↓ 126 callers
Method
isSupported
Checks if the specified JWS algorithm is supported by the default system JCA provider(s). @param alg The JWS algorithm. Must not be {@code null}. @r
src/main/java/com/nimbusds/jose/jca/JCASupport.java:70
↓ 123 callers
Method
getPayload
Returns the payload of this JOSE object. @return The payload, {@code null} if not available (for an encrypted JWE object that hasn't been dec
src/main/java/com/nimbusds/jose/JOSEObject.java:119
↓ 119 callers
Method
parse
Parses a JWE object from the specified string in compact form. The parsed JWE object will be given an {@link State#ENCRYPTED} state. @param s The str
src/main/java/com/nimbusds/jose/JWEObject.java:499
↓ 117 callers
Method
encrypt
Encrypts this JWE object with the specified encrypter. The JWE object must be in an {@link State#UNENCRYPTED unencrypted} state. @param encrypter The
src/main/java/com/nimbusds/jose/JWEObject.java:360
↓ 116 callers
Method
decrypt
Decrypts this JWE object with the specified decrypter. The JWE object must be in a {@link State#ENCRYPTED encrypted} state. @param decrypter The JWE
src/main/java/com/nimbusds/jose/JWEObject.java:409
↓ 112 callers
Method
serialize
Serialises this JWE object to its compact format consisting of Base64URL-encoded parts delimited by period ('.') characters. It must be in a {@link St
src/main/java/com/nimbusds/jose/JWEObject.java:453
↓ 106 callers
Method
getKey
Gets the Key Encryption Key (KEK). @return The Key Encryption Key.
src/main/java/com/nimbusds/jose/crypto/AESCryptoProvider.java:163
↓ 103 callers
Method
getAlgorithm
()
src/test/java/com/nimbusds/jose/crypto/RSA1_5Test.java:630
↓ 98 callers
Method
getName
Returns the JOSE name of this cryptographic curve. @return The JOSE name.
src/main/java/com/nimbusds/jose/jwk/Curve.java:171
↓ 95 callers
Method
decodeToBigInteger
Decodes this Base64 object to an unsigned big integer. <p>Same as {@code new BigInteger(1, base64.decode())}. @return The resulting big integer.
src/main/java/com/nimbusds/jose/util/Base64.java:91
↓ 93 callers
Method
getKeyUse
Gets the use ({@code use}) of this JWK. @return The key use, {@code null} if not specified or if the key is intended for signing as well as e
src/main/java/com/nimbusds/jose/jwk/JWK.java:224
↓ 81 callers
Method
toString
Returns a string representation of this payload. @return The string representation.
src/main/java/com/nimbusds/jose/Payload.java:367
↓ 79 callers
Method
getProvider
Gets the JCA provider to be used for all operations. @return The JCA provider to be used for all operations where a more specific one is abse
src/main/java/com/nimbusds/jose/jca/JCAContext.java:79
↓ 78 callers
Method
getEncryptionMethod
Gets the encryption method ({@code enc}) parameter. @return The encryption method parameter.
src/main/java/com/nimbusds/jose/JWEHeader.java:929
↓ 77 callers
Method
getModulus
Gets the modulus value ({@code n}) of the RSA key. @return The RSA key modulus. It is represented as the Base64URL encoding of the value's bi
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1631
↓ 76 callers
Method
getPublicExponent
Gets the public exponent ({@code e}) of the RSA key. @return The public RSA key exponent. It is represented as the Base64URL encoding of the
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1643
↓ 73 callers
Method
decode
Decodes this Base64 object to a byte array. @return The resulting byte array.
src/main/java/com/nimbusds/jose/util/Base64.java:78
↓ 72 callers
Method
getAlgorithm
Gets the intended JOSE algorithm ({@code alg}) for this JWK. @return The intended JOSE algorithm, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWK.java:246
↓ 72 callers
Method
getKeyOperations
Gets the operations ({@code key_ops}) for this JWK. @return The key operations, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWK.java:235
↓ 67 callers
Method
setProvider
Sets the JCA provider to be used for all operations. @param provider The JCA provider to be used for all operations where a more spec
src/main/java/com/nimbusds/jose/jca/JCAContext.java:92
↓ 65 callers
Method
supportedJWEAlgorithms
Returns the names of the supported algorithms by the JWE provider instance. These correspond to the {@code alg} JWE header parameter. @return The sup
src/main/java/com/nimbusds/jose/JWEProvider.java:44
↓ 63 callers
Method
getCurve
Returns the cryptographic curve. @return The cryptographic curve.
src/main/java/com/nimbusds/jose/jwk/CurveBasedJWK.java:35
↓ 62 callers
Method
getX509CertChain
Gets the X.509 certificate chain ({@code x5c}) of this JWK. @return The X.509 certificate chain as a unmodifiable list, {@code null} if not s
src/main/java/com/nimbusds/jose/jwk/JWK.java:310
↓ 61 callers
Method
setKeyEncryptionProvider
Sets a specific JCA provider for the key encryption. @param keProvider The specific JCA provider to be used for the key encryption,
src/main/java/com/nimbusds/jose/jca/JWEJCAContext.java:111
↓ 58 callers
Method
getX509CertThumbprint
Gets the X.509 certificate SHA-1 thumbprint ({@code x5t}) of this JWK. @return The X.509 certificate SHA-1 thumbprint, {@code null} if not sp
src/main/java/com/nimbusds/jose/jwk/JWK.java:284
↓ 58 callers
Method
setContentEncryptionProvider
Sets a specific JCA provider for the content encryption. @param ceProvider The specific JCA provider to be used for the content enc
src/main/java/com/nimbusds/jose/jca/JWEJCAContext.java:137
↓ 58 callers
Method
supportedJWSAlgorithms
Returns the names of the supported algorithms by the JWS provider instance. These correspond to the {@code alg} JWS header parameter. @return The sup
src/main/java/com/nimbusds/jose/JWSProvider.java:44
↓ 55 callers
Method
matches
Returns {@code true} if the specified JWK matches. @param key The JSON Web Key (JWK). Must not be {@code null}. @return {@code true} if the JWK mat
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:1034
↓ 52 callers
Method
getX509CertSHA256Thumbprint
Gets the X.509 certificate SHA-256 thumbprint ({@code x5t#S256}) of this JWK. @return The X.509 certificate SHA-256 thumbprint, {@code null} if
src/main/java/com/nimbusds/jose/jwk/JWK.java:298
↓ 51 callers
Method
claim
Sets the specified claim (registered or custom). @param name The name of the claim to set. Must not be {@code null}. @param value The v
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:292
↓ 51 callers
Method
getString
Gets a string member of a JSON object. @param o The JSON object. Must not be {@code null}. @param key The JSON object member key. Must not be {@cod
src/main/java/com/nimbusds/jose/util/JSONObjectUtils.java:240
↓ 49 callers
Method
getType
Gets the type ({@code typ}) parameter. @return The type parameter, {@code null} if not specified.
src/main/java/com/nimbusds/jose/Header.java:174
↓ 47 callers
Method
getState
Returns the state of this JWS object. @return The state.
src/main/java/com/nimbusds/jose/JWSObject.java:242
↓ 46 callers
Method
getIncludedParams
()
src/main/java/com/nimbusds/jose/JWEHeader.java:1027
↓ 46 callers
Method
getX509CertURL
Gets the X.509 certificate URL ({@code x5u}) of this JWK. @return The X.509 certificate URL, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWK.java:271
↓ 44 callers
Method
getKeyStore
Returns a reference to the underlying key store. @return The underlying key store, {@code null} if none.
src/main/java/com/nimbusds/jose/jwk/JWK.java:325
↓ 44 callers
Method
getPrivateExponent
Gets the private exponent ({@code d}) of the RSA key. @return The private RSA key exponent. It is represented as the Base64URL encoding of th
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1657
↓ 43 callers
Method
toBase64URL
Returns a Base64URL representation of the header. If the header was parsed always returns the original Base64URL (required for JWS validation and auth
src/main/java/com/nimbusds/jose/Header.java:324
↓ 41 callers
Method
algorithm
Sets the intended JOSE algorithm ({@code alg}) for the JWK. @param alg The intended JOSE algorithm, {@code null} if not specified. @retur
src/main/java/com/nimbusds/jose/jwk/ECKey.java:401
↓ 41 callers
Method
customParam
Sets a custom (non-registered) parameter. @param name The name of the custom parameter. Must not match a registered parameter name and
src/main/java/com/nimbusds/jose/JWSHeader.java:412
↓ 41 callers
Method
privateKey
Sets the private Elliptic Curve key. The alternative method is {@link #d}. @param priv The private EC key, used to obtain the private 'd'
src/main/java/com/nimbusds/jose/jwk/ECKey.java:331
↓ 40 callers
Method
getIncludedParams
Gets the names of all included parameters (registered and custom) in the header instance. @return The included parameters.
src/main/java/com/nimbusds/jose/Header.java:247
↓ 39 callers
Method
getX
Gets the public 'x' coordinate for the elliptic curve point. @return The 'x' coordinate. It is represented as the Base64URL encoding of the c
src/main/java/com/nimbusds/jose/jwk/ECKey.java:997
↓ 39 callers
Method
getY
Gets the public 'y' coordinate for the elliptic curve point. @return The 'y' coordinate. It is represented as the Base64URL encoding of the c
src/main/java/com/nimbusds/jose/jwk/ECKey.java:1009
↓ 38 callers
Method
getCriticalParams
Gets the critical header parameters ({@code crit}) parameter. @return The names of the critical header parameters, as a unmodifiable set, {@c
src/main/java/com/nimbusds/jose/Header.java:197
↓ 38 callers
Method
getCurve
()
src/main/java/com/nimbusds/jose/jwk/ECKey.java:984
↓ 38 callers
Method
verify
Checks the signature of this JWS object with the specified verifier. The JWS object must be in a {@link State#SIGNED signed} state. @param verifier T
src/main/java/com/nimbusds/jose/JWSObject.java:345
↓ 37 callers
Method
getHeader
()
src/main/java/com/nimbusds/jose/JWEObject.java:214
↓ 36 callers
Method
forAlgorithm
Infers the key type for the specified JOSE algorithm. @param alg The JOSE algorithm. May be {@code null}. @return The key type, {@code null} if it c
src/main/java/com/nimbusds/jose/jwk/KeyType.java:224
↓ 36 callers
Method
getHeader
Gets the JOSE header of the JSON Web Token (JWT). @return The header.
src/main/java/com/nimbusds/jwt/JWT.java:42
↓ 36 callers
Method
getKeyType
Gets the type ({@code kty}) of this JWK. @return The key type.
src/main/java/com/nimbusds/jose/jwk/JWK.java:212
↓ 36 callers
Method
keyUse
Sets the use ({@code use}) of the JWK. @param use The key use, {@code null} if not specified or if the key is intended for signing as well
src/main/java/com/nimbusds/jose/jwk/ECKey.java:371
↓ 35 callers
Method
matches
Returns {@code true} if the specified JOSE object matches. @param joseObject The JOSE object. Must not be {@code null}. @return {@code true} if the
src/main/java/com/nimbusds/jose/proc/JOSEMatcher.java:460
↓ 34 callers
Method
criticalParams
Sets the critical header parameters ({@code crit}) parameter. @param crit The names of the critical header parameters, empty set or {@cod
src/main/java/com/nimbusds/jose/JWSHeader.java:280
↓ 33 callers
Method
append
Appends the specified JWK matcher parameter to a string builder. @param sb The string builder. Must not be {@code null}. @param key The parame
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:1151
↓ 32 callers
Method
getKeys
Gets the keys (ordered) of this JSON Web Key (JWK) set. @return The keys, empty list if none.
src/main/java/com/nimbusds/jose/jwk/JWKSet.java:157
↓ 32 callers
Method
sign
Signs this JWS object with the specified signer. The JWS object must be in a {@link State#UNSIGNED unsigned} state. @param signer The JWS signer. Mus
src/main/java/com/nimbusds/jose/JWSObject.java:305
↓ 31 callers
Method
getContentType
Gets the content type ({@code cty}) parameter. @return The content type parameter, {@code null} if not specified.
src/main/java/com/nimbusds/jose/Header.java:185
↓ 31 callers
Method
getCustomParam
Gets a custom (non-registered) parameter. @param name The name of the custom parameter. Must not be {@code null}. @return The custom par
src/main/java/com/nimbusds/jose/Header.java:211
↓ 31 callers
Method
subject
Sets the subject ({@code sub}) claim. @param sub The subject claim, {@code null} if not specified. @return This builder.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:182
↓ 30 callers
Method
toECParameterSpec
Returns the parameter specification for this cryptographic curve. @return The EC parameter specification, {@code null} if it cannot be determ
src/main/java/com/nimbusds/jose/jwk/Curve.java:206
↓ 30 callers
Method
toECPrivateKey
Returns a standard {@code java.security.interfaces.ECPrivateKey} representation of this Elliptic Curve JWK. Uses the default JCA provider. @return Th
src/main/java/com/nimbusds/jose/jwk/ECKey.java:1104
↓ 29 callers
Method
bitLength
Returns the bit length of the specified byte length. @param byteLength The byte length. @return The bit length.
src/main/java/com/nimbusds/jose/util/ByteUtils.java:89
↓ 29 callers
Method
decode
Decodes a base 64 or base 64 URL-safe encoded string. May contain line separators. Any illegal characters are ignored. @param b64String The base 64 o
src/main/java/com/nimbusds/jose/util/Base64Codec.java:271
↓ 29 callers
Method
getAudience
Gets the audience ({@code aud}) claim. @return The audience claim, empty list if not specified.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:374
↓ 28 callers
Method
getFieldSize
()
src/main/java/com/nimbusds/jose/jwk/ECParameterTable.java:84
↓ 28 callers
Method
parse
Parses a public / private RSA JWK from the specified JSON object string representation. @param s The JSON object string to parse. Must not be {@code
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:2016
↓ 28 callers
Method
parse
Parses a DER-encoded X.509 certificate. @param derEncodedCert The DER-encoded X.509 certificate, as a byte array. May be {@code
src/main/java/com/nimbusds/jose/util/X509CertUtils.java:56
↓ 28 callers
Method
toByteArray
Returns a copy of this octet sequence key value as a byte array. @return The key value as a byte array.
src/main/java/com/nimbusds/jose/jwk/OctetSequenceKey.java:466
↓ 27 callers
Method
getAlgorithm
Gets the algorithm ({@code alg}) parameter. @return The algorithm parameter.
src/main/java/com/nimbusds/jose/JWSHeader.java:588
↓ 27 callers
Method
getCustomParams
Gets the custom (non-registered) parameters. @return The custom parameters, as a unmodifiable map, empty map if none.
src/main/java/com/nimbusds/jose/Header.java:223
↓ 27 callers
Method
getIssuer
Gets the issuer ({@code iss}) claim. @return The issuer claim, {@code null} if not specified.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:344
↓ 27 callers
Method
parse
Parses a public / private Elliptic Curve JWK from the specified JSON object string representation. @param s The JSON object string to parse. Must not
src/main/java/com/nimbusds/jose/jwk/ECKey.java:1309
↓ 27 callers
Method
serialize
Serialises the JSON Web Token (JWT) to its compact format consisting of Base64URL-encoded parts delimited by period ('.') characters. @return The ser
src/main/java/com/nimbusds/jwt/JWT.java:91
↓ 26 callers
Method
process
(final String jwtString, final C context)
src/main/java/com/nimbusds/jwt/proc/DefaultJWTProcessor.java:271
↓ 26 callers
Method
toECPublicKey
Returns a standard {@code java.security.interfaces.ECPublicKey} representation of this Elliptic Curve JWK. Uses the default JCA provider. @return The
src/main/java/com/nimbusds/jose/jwk/ECKey.java:1041
↓ 25 callers
Method
byteLength
Returns the byte length of the specified bit length. @param bitLength The bit length. @return The byte byte length.
src/main/java/com/nimbusds/jose/util/ByteUtils.java:162
↓ 25 callers
Method
getKeyEncryptionProvider
Gets the specific JCA provider for the key encryption. @return The applicable JCA provider, {@code null} implies the default system provider.
src/main/java/com/nimbusds/jose/jca/JWEJCAContext.java:123
↓ 25 callers
Method
toJSONString
Returns the JSON object string representation of this JWK. @return The JSON object string representation.
src/main/java/com/nimbusds/jose/jwk/JWK.java:472
↓ 24 callers
Method
getPublicKey
Gets the public RSA key. @return The public RSA key.
src/main/java/com/nimbusds/jose/crypto/RSAEncrypter.java:119
↓ 24 callers
Method
getSecureRandom
Gets the secure random generator. Intended for generation of initialisation vectors and other purposes that require a secure random generator. @retur
src/main/java/com/nimbusds/jose/jca/JCAContext.java:106
↓ 24 callers
Method
load
Loads a JWK from the specified JCE key store. The JWK can be a public / private {@link RSAKey RSA key}, a public / private {@link ECKey EC key}, or a
src/main/java/com/nimbusds/jose/jwk/JWK.java:606
↓ 23 callers
Method
getClaim
Gets the specified claim (registered or custom). @param name The name of the claim. Must not be {@code null}. @return The value of the claim, {@code
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:460
↓ 22 callers
Method
getD
Gets the private 'd' coordinate for the elliptic curve point. It is represented as the Base64URL encoding of the coordinate's big endian representatio
src/main/java/com/nimbusds/jose/jwk/ECKey.java:1024
↓ 22 callers
Method
getParams
()
src/test/java/com/nimbusds/jose/crypto/ECDHCurveCheckTest.java:63
next →
1–100 of 1,840, ranked by callers