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
↓ 22 callers
Method
getValue
Gets the value of this key type. Values are case sensitive. @return The key type.
src/main/java/com/nimbusds/jose/jwk/KeyType.java:121
↓ 22 callers
Method
keyOperations
Sets the operations ({@code key_ops}) of the JWK. @param ops The key operations, {@code null} if not specified. @return This builder.
src/main/java/com/nimbusds/jose/jwk/ECKey.java:386
↓ 22 callers
Method
parse
Parses a JSON object. <p>Specific JSON to Java entity mapping (as per JSON Smart): <ul> <li>JSON true|false map to {@code java.lang.Boolean}.
src/main/java/com/nimbusds/jose/util/JSONObjectUtils.java:65
↓ 22 callers
Method
parse
Parses a JSON Web Token (JWT) claims set from the specified JSON object representation. @param json The JSON object to parse. Must not be {@code null
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:868
↓ 22 callers
Method
sign
Signs the specified {@link JWSObject#getSigningInput input} of a {@link JWSObject JWS object}. @param header The JSON Web Signature (JWS) heade
src/main/java/com/nimbusds/jose/JWSSigner.java:49
↓ 21 callers
Method
areConsistent
Checks if the specified key use and key operations are consistent. @param use The key use. May be {@code null}. @param ops The key operations. May be
src/main/java/com/nimbusds/jose/jwk/KeyUseAndOpsConsistency.java:68
↓ 21 callers
Method
getKeyValue
Returns the value of this octet sequence key. @return The key value. It is represented as the Base64URL encoding of the value's big endian re
src/main/java/com/nimbusds/jose/jwk/OctetSequenceKey.java:455
↓ 21 callers
Method
toRSAPublicKey
Returns a standard {@code java.security.interfaces.RSAPublicKey} representation of this RSA JWK. @return The public RSA key. @throws JOSEException I
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1759
↓ 20 callers
Method
getSubject
Gets the subject ({@code sub}) claim. @return The subject claim, {@code null} if not specified.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:359
↓ 20 callers
Method
isPrivate
()
src/main/java/com/nimbusds/jose/jwk/ECKey.java:1243
↓ 20 callers
Method
parse
Parses a JWS object from the specified string in compact format. The parsed JWS object will be given a {@link State#SIGNED} state. @param s The strin
src/main/java/com/nimbusds/jose/JWSObject.java:411
↓ 19 callers
Method
getOtherPrimes
Gets the other primes information ({@code oth}) for the private RSA key, should they exist. @return The RSA other primes information, {@code null} or
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1743
↓ 19 callers
Method
isAfter
Check if the specified date is after the specified reference, given the maximum accepted negative clock skew. <p>Formula: <pre> return date + clock_
src/main/java/com/nimbusds/jwt/util/DateUtils.java:84
↓ 19 callers
Method
isPrivate
()
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1923
↓ 19 callers
Method
safeBitLength
Returns the bit length of the specified byte length, preventing integer overflow. @param byteLength The byte length. @return The bit length. @throw
src/main/java/com/nimbusds/jose/util/ByteUtils.java:105
↓ 19 callers
Method
toJSONObject
Returns the JSON object representation of the claims set. The claims are serialised according to their insertion order. @return The JSON object repre
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:798
↓ 19 callers
Method
toString
()
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:1103
↓ 18 callers
Method
cekBitLength
Gets the length of the associated Content Encryption Key (CEK). @return The Content Encryption Key (CEK) bit length, zero if not specified.
src/main/java/com/nimbusds/jose/EncryptionMethod.java:206
↓ 18 callers
Method
createJWSVerifier
(final JWSHeader header, final Key key)
src/main/java/com/nimbusds/jose/crypto/factories/DefaultJWSVerifierFactory.java:86
↓ 18 callers
Method
isPrivate
Returns {@code true} if this JWK contains private or sensitive (non-public) parameters. @return {@code true} if this JWK contains private parameters,
src/main/java/com/nimbusds/jose/jwk/JWK.java:381
↓ 18 callers
Method
parse
Parses a JWE algorithm from the specified string. @param s The string to parse. Must not be {@code null}. @return The JWE algorithm (matching standa
src/main/java/com/nimbusds/jose/JWEAlgorithm.java:294
↓ 18 callers
Method
parse
Parses a JWS header from the specified JSON object. @param jsonObject The JSON object to parse. Must not be {@code null}. @return
src/main/java/com/nimbusds/jose/JWSHeader.java:606
↓ 18 callers
Method
process
(final String compactJOSE, final C context)
src/main/java/com/nimbusds/jose/proc/DefaultJOSEProcessor.java:182
↓ 18 callers
Method
toRSAPrivateKey
Returns a standard {@code java.security.interfaces.RSAPrivateKey} representation of this RSA JWK. @return The private RSA key, {@code null} if not sp
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1790
↓ 17 callers
Method
getFirstCRTCoefficient
Gets the first Chinese Remainder Theorem (CRT) coefficient ({@code qi})} of the private RSA key. @return The RSA first CRT coefficient. It is represe
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1730
↓ 17 callers
Method
getFirstFactorCRTExponent
Gets the first factor Chinese Remainder Theorem (CRT) exponent ({@code dp}) of the private RSA key. @return The RSA first factor CRT exponent. It is
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1700
↓ 17 callers
Method
getFirstPrimeFactor
Gets the first prime factor ({@code p}) of the private RSA key. @return The RSA first prime factor. It is represented as the Base64URL encodi
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1671
↓ 17 callers
Method
getSecondFactorCRTExponent
Gets the second factor Chinese Remainder Theorem (CRT) exponent ({@code dq}) of the private RSA key. @return The RSA second factor CRT exponent. It i
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1715
↓ 17 callers
Method
getSecondPrimeFactor
Gets the second prime factor ({@code q}) of the private RSA key. @return The RSA second prime factor. It is represented as the Base64URL enco
src/main/java/com/nimbusds/jose/jwk/RSAKey.java:1685
↓ 17 callers
Method
select
Selects the keys from the specified JWK set according to the matcher's criteria. @param jwkSet The JWK set. May be {@code null}. @return The selecte
src/main/java/com/nimbusds/jose/jwk/JWKSelector.java:78
↓ 16 callers
Method
addAll
(final Collection<? extends T> algs)
src/main/java/com/nimbusds/jose/AlgorithmFamily.java:58
↓ 16 callers
Method
encodeToString
Encodes a byte array into a base 64 encoded string. @param byteArray The bytes to convert. If {@code null} or length 0 an empty arra
src/main/java/com/nimbusds/jose/util/Base64Codec.java:253
↓ 16 callers
Method
forJWSAlgorithm
Gets the cryptographic curve(s) for the specified JWS algorithm. @param alg The JWS algorithm. May be {@code null}. @return The curve(s), {@code nul
src/main/java/com/nimbusds/jose/jwk/Curve.java:322
↓ 16 callers
Method
getAlgorithm
Gets the algorithm ({@code alg}) parameter. @return The algorithm parameter.
src/main/java/com/nimbusds/jose/JWEHeader.java:918
↓ 16 callers
Method
getJWTClaimsSet
()
src/main/java/com/nimbusds/jwt/PlainJWT.java:91
↓ 16 callers
Method
getMACProvider
Gets the specific JCA provider for the MAC computation (where required by the JWE encryption method). @return The applicable JCA provider, {@code nul
src/main/java/com/nimbusds/jose/jca/JWEJCAContext.java:178
↓ 16 callers
Method
getProcessedCriticalHeaderParams
Returns the names of the critical ({@code crit}) header parameters that are understood and processed by the JWS verifier / JWE decrypter. @return The
src/main/java/com/nimbusds/jose/CriticalHeaderParamsAware.java:47
↓ 16 callers
Method
getX
Gets the public 'x' parameter. @return The public 'x' parameter.
src/main/java/com/nimbusds/jose/jwk/OctetKeyPair.java:605
↓ 16 callers
Method
issuer
Sets the issuer ({@code iss}) claim. @param iss The issuer claim, {@code null} if not specified. @return This builder.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:168
↓ 16 callers
Method
setJWSKeySelector
(final JWSKeySelector<C> jwsKeySelector)
src/main/java/com/nimbusds/jwt/proc/DefaultJWTProcessor.java:155
↓ 15 callers
Method
computeDigestCycles
Computes the required digest (hashing) cycles for the specified message digest length and derived key length. @param digestLengthBits The length of t
src/main/java/com/nimbusds/jose/crypto/ConcatKDF.java:237
↓ 15 callers
Method
computeEncodedLength
Computes the base 64 encoded character length for the specified input byte length. @param inputLength The input byte length. @param urlSafe {@cod
src/main/java/com/nimbusds/jose/util/Base64Codec.java:77
↓ 15 callers
Method
getCurve
()
src/main/java/com/nimbusds/jose/jwk/OctetKeyPair.java:593
↓ 15 callers
Method
getParsedBase64URL
Gets the original Base64URL used to create this header. @return The parsed Base64URL, {@code null} if the header was created from scratch.
src/main/java/com/nimbusds/jose/Header.java:235
↓ 15 callers
Method
hasKeyID
Returns {@code true} if keys with a set use are matched. @return {@code true} if keys with a set ID are matched, else {@code false}.
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:925
↓ 15 callers
Method
jwkURL
Sets the JSON Web Key (JWK) Set URL ({@code jku}) parameter. @param jku The JSON Web Key (JWK) Set URL parameter, {@code null} if not spec
src/main/java/com/nimbusds/jose/JWSHeader.java:295
↓ 15 callers
Method
parse
Parses a JWS algorithm from the specified string. @param s The string to parse. Must not be {@code null}. @return The JWS algorithm (matching standa
src/main/java/com/nimbusds/jose/JWSAlgorithm.java:231
↓ 15 callers
Method
readFileToString
Reads the content of the specified file into a string. @param file The file. Must not be {@code null}. @param charset The expected character set.
src/main/java/com/nimbusds/jose/util/IOUtils.java:73
↓ 15 callers
Method
toBytes
Returns a four byte array representation of the specified integer. @param intValue The integer to be converted. @return The byte array representatio
src/main/java/com/nimbusds/jose/util/IntegerUtils.java:37
↓ 14 callers
Method
getContentEncryptionProvider
Gets the specific JCA provider for the content encryption. @return The applicable JCA provider, {@code null} implies the default system provi
src/main/java/com/nimbusds/jose/jca/JWEJCAContext.java:149
↓ 14 callers
Method
getEphemeralPublicKey
Gets the Ephemeral Public Key ({@code epk}) parameter. @return The Ephemeral Public Key parameter, {@code null} if not specified.
src/main/java/com/nimbusds/jose/JWEHeader.java:941
↓ 14 callers
Method
getJWKURL
Gets the JSON Web Key (JWK) Set URL ({@code jku}) parameter. @return The JSON Web Key (JWK) Set URL parameter, {@code null} if not specified.
src/main/java/com/nimbusds/jose/CommonSEHeader.java:174
↓ 14 callers
Method
getKeySizes
Returns the key sizes. @return The key sizes in bits, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:1010
↓ 14 callers
Method
getOID
Returns the standard object identifier (OID) of this cryptographic curve. @return The OID, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/Curve.java:194
↓ 14 callers
Method
getStdName
Returns the standard name of this cryptographic curve. @return The standard name, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/Curve.java:182
↓ 14 callers
Method
isPrivate
()
src/main/java/com/nimbusds/jose/jwk/OctetKeyPair.java:659
↓ 14 callers
Method
resolveAlgorithm
Resolves the matching EC DSA algorithm for the specified EC key (public or private). @param ecKey The EC key. Must not be {@code null}. @return The
src/main/java/com/nimbusds/jose/crypto/ECDSA.java:51
↓ 14 callers
Method
serialize
Serialises this JWS 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/JWSObject.java:391
↓ 14 callers
Method
verify
Verifies the specified {@link JWSObject#getSignature signature} of a {@link JWSObject JWS object}. @param header The JSON Web Signature (JWS) h
src/main/java/com/nimbusds/jose/JWSVerifier.java:53
↓ 13 callers
Method
agreementPartyUInfo
Sets the agreement PartyUInfo ({@code apu}) parameter. @param apu The agreement PartyUInfo parameter, {@code null} if not specified. @ret
src/main/java/com/nimbusds/jose/JWEHeader.java:527
↓ 13 callers
Method
agreementPartyVInfo
Sets the agreement PartyVInfo ({@code apv}) parameter. @param apv The agreement PartyVInfo parameter, {@code null} if not specified. @ret
src/main/java/com/nimbusds/jose/JWEHeader.java:542
↓ 13 callers
Method
computeThumbprint
Computes the SHA-256 thumbprint of this JWK. See RFC 7638 for more information. @return The SHA-256 thumbprint. @throws JOSEException If the SHA-256
src/main/java/com/nimbusds/jose/jwk/JWK.java:350
↓ 13 callers
Method
encode
Base64-encodes the specified byte array. @param bytes The byte array to encode. Must not be {@code null}. @return The resulting Base64 object.
src/main/java/com/nimbusds/jose/util/Base64.java:170
↓ 13 callers
Method
encodeCoordinate
Returns the Base64URL encoding of the specified elliptic curve 'x', 'y' or 'd' coordinate, with leading zero padding up to the specified field size in
src/main/java/com/nimbusds/jose/jwk/ECKey.java:595
↓ 13 callers
Method
generateCEK
Generates a Content Encryption Key (CEK) for the specified JOSE encryption method. @param enc The encryption method. Must not be {@code null}.
src/main/java/com/nimbusds/jose/crypto/ContentCryptoProvider.java:102
↓ 13 callers
Method
generateECJWK
(final Curve curve)
src/test/java/com/nimbusds/jose/crypto/ECDHCryptoTest.java:55
↓ 13 callers
Method
getD
Gets the private 'd' parameter. @return The private 'd' coordinate, {@code null} if not specified (for a public key).
src/main/java/com/nimbusds/jose/jwk/OctetKeyPair.java:617
↓ 13 callers
Method
getExpirationTime
Gets the expiration time ({@code exp}) claim. @return The expiration time, {@code null} if not specified.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:398
↓ 13 callers
Method
getHeader
()
src/main/java/com/nimbusds/jose/JWSObject.java:179
↓ 13 callers
Method
getParsedString
Gets the original parsed string used to create the JSON Web Token (JWT). @see #getParsedParts @return The parsed string used to create the JWT, {@co
src/main/java/com/nimbusds/jwt/JWT.java:79
↓ 13 callers
Method
getStringClaim
Gets the specified claim (registered or custom) as {@link java.lang.String}. @param name The name of the claim. Must not be {@code null}. @return Th
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:477
↓ 13 callers
Method
identifier
Returns the identifier of this public key use. @return The identifier.
src/main/java/com/nimbusds/jose/jwk/KeyUse.java:80
↓ 13 callers
Method
normalizeEncodedString
Normalises a base 64 encoded string by ensuring any URL-safe characters are replaced with their regular base64 representation and any truncated '=' pa
src/main/java/com/nimbusds/jose/util/Base64Codec.java:110
↓ 13 callers
Method
split
Splits a compact serialised JOSE object into its Base64URL-encoded parts. @param s The compact serialised JOSE object to split. Must not be
src/main/java/com/nimbusds/jose/JOSEObject.java:211
↓ 13 callers
Method
toJSONObject
Returns a JSON object representation of this JWK. This method is intended to be called from extending classes. <p>Example: <pre> { "kty" : "RSA",
src/main/java/com/nimbusds/jose/jwk/JWK.java:418
↓ 13 callers
Method
x509CertChain
Sets the X.509 certificate chain ({@code x5c}) of the JWK. @param x5c The X.509 certificate chain as a unmodifiable list, {@code null} if
src/main/java/com/nimbusds/jose/jwk/ECKey.java:530
↓ 12 callers
Method
countIllegalChars
Counts the illegal / separator characters in the specified base 64 or base 64 URL-safe encoded string. @param b64String The base 64 or base 64 URL-sa
src/main/java/com/nimbusds/jose/util/Base64Codec.java:151
↓ 12 callers
Method
getAlgorithms
Returns the JOSE algorithms to match. @return The JOSE algorithms, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:890
↓ 12 callers
Method
getAuthenticationTag
Gets the authentication tag. @return The authentication tag.
src/main/java/com/nimbusds/jose/crypto/AuthenticatedCipherText.java:84
↓ 12 callers
Method
getCipherText
Gets the cipher text. @return The cipher text.
src/main/java/com/nimbusds/jose/crypto/AuthenticatedCipherText.java:73
↓ 12 callers
Method
getClaims
Gets the claims (registered and custom). <p>Note that the registered claims Expiration-Time ({@code exp}), Not-Before-Time ({@code nbf}) and Issued-A
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:786
↓ 12 callers
Method
getJWK
Gets the JSON Web Key (JWK) ({@code jwk}) parameter. @return The JSON Web Key (JWK) parameter, {@code null} if not specified.
src/main/java/com/nimbusds/jose/CommonSEHeader.java:186
↓ 12 callers
Method
getKeyIDs
Returns the key IDs to match. @return The key IDs, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:901
↓ 12 callers
Method
getKeyTypes
Returns the key types to match. @return The key types, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:857
↓ 12 callers
Method
parse
Parses an octet sequence JWK from the specified JSON object string representation. @param s The JSON object string to parse. Must not be {@code null}
src/main/java/com/nimbusds/jose/jwk/OctetSequenceKey.java:570
↓ 12 callers
Method
subArray
Returns a portion of the specified byte array. @param byteArray The byte array. Must not be {@code null}. @param beginIndex The beginning index, inc
src/main/java/com/nimbusds/jose/util/ByteUtils.java:74
↓ 12 callers
Method
x509CertThumbprint
Sets the X.509 certificate SHA-1 thumbprint ({@code x5t}) of the JWK. @param x5t The X.509 certificate SHA-1 thumbprint, {@code null} if n
src/main/java/com/nimbusds/jose/jwk/ECKey.java:498
↓ 12 callers
Method
x509CertURL
Sets the X.509 certificate URL ({@code x5u}) of the JWK. @param x5u The X.509 certificate URL, {@code null} if not specified. @return Thi
src/main/java/com/nimbusds/jose/jwk/ECKey.java:482
↓ 11 callers
Method
audience
Sets the audience ({@code aud}) claim. @param aud The audience claim, {@code null} if not specified. @return This builder.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:197
↓ 11 callers
Method
compressionAlgorithm
Sets the compression algorithm ({@code zip}) parameter. @param zip The compression algorithm parameter, {@code null} if not specified. @r
src/main/java/com/nimbusds/jose/JWEHeader.java:512
↓ 11 callers
Method
expirationTime
Sets the expiration time ({@code exp}) claim. @param exp The expiration time, {@code null} if not specified. @return This builder.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:231
↓ 11 callers
Method
getKeyOperations
Returns the key operations to match. @return The key operations, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:879
↓ 11 callers
Method
getKeyUses
Returns the public key uses to match. @return The public key uses, {@code null} if not specified.
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:868
↓ 11 callers
Method
hasKeyUse
Returns {@code true} if keys with a set use are matched. @return {@code true} if keys with a set use are matched, else {@code false}.
src/main/java/com/nimbusds/jose/jwk/JWKMatcher.java:913
↓ 11 callers
Method
isBefore
Checks if the specified date is before the specified reference, given the maximum accepted positive clock skew. <p>Formula: <pre> return date - cloc
src/main/java/com/nimbusds/jwt/util/DateUtils.java:119
↓ 11 callers
Method
notBeforeTime
Sets the not-before ({@code nbf}) claim. @param nbf The not-before claim, {@code null} if not specified. @return This builder.
src/main/java/com/nimbusds/jwt/JWTClaimsSet.java:246
↓ 11 callers
Method
parse
Parses the specified string representing a JSON Web Key (JWK) set. @param s The string to parse. Must not be {@code null}. @return The JWK set. @th
src/main/java/com/nimbusds/jose/jwk/JWKSet.java:301
↓ 10 callers
Method
compute
Computes a Hash-based Message Authentication Code (HMAC) for the specified secret and message. @param alg The Java Cryptography Architecture (JC
src/main/java/com/nimbusds/jose/crypto/HMAC.java:90
↓ 10 callers
Method
createECKeyPair
(final AlgorithmParameterSpec spec)
src/test/java/com/nimbusds/jose/crypto/ECDSARoundTripTest.java:117
↓ 10 callers
Method
createJWEDecrypter
(final JWEHeader header, final Key key)
src/main/java/com/nimbusds/jose/crypto/factories/DefaultJWEDecrypterFactory.java:107
← previous
next →
101–200 of 1,840, ranked by callers