Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/jwtk/jjwt
/ functions
Functions
1,993 in github.com/jwtk/jjwt
⨍
Functions
1,993
◇
Types & classes
477
↓ 281 callers
Method
notNull
Assert that an object is not <code>null</code> . <pre class="code">Assert.notNull(clazz, "The class must not be null");</pre> @param object the obje
api/src/main/java/io/jsonwebtoken/lang/Assert.java:92
↓ 154 callers
Method
getId
Returns the JWTs <a href="https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.7"> <code>jti</code></a> (JWT ID) value or {@code null} if not prese
api/src/main/java/io/jsonwebtoken/Claims.java:142
↓ 94 callers
Method
build
Returns the resulting Map object from this MapBuilder. @return the resulting Map object from this MapBuilder.
api/src/main/java/io/jsonwebtoken/lang/Maps.java:78
↓ 75 callers
Method
equals
(Object obj)
impl/src/main/java/io/jsonwebtoken/impl/DefaultJwe.java:48
↓ 69 callers
Method
hasText
Assert that the given String has valid text content; that is, it must not be <code>null</code> and must contain at least one non-whitespace character.
api/src/main/java/io/jsonwebtoken/lang/Assert.java:149
↓ 63 callers
Method
get
()
impl/src/main/java/io/jsonwebtoken/impl/lang/CheckedSupplier.java:23
↓ 61 callers
Method
put
(String s, Object o)
impl/src/main/java/io/jsonwebtoken/impl/security/AbstractJwk.java:248
↓ 59 callers
Method
toString
Returns the {@link #toByteArray()} value as a Base64URL-encoded string.
api/src/main/java/io/jsonwebtoken/security/JwkThumbprint.java:53
↓ 57 callers
Method
add
Sets the specified key/value pair in the map, overwriting any existing entry with the same key. A {@code null} or empty value will remove the entry fr
api/src/main/java/io/jsonwebtoken/lang/MapMutator.java:62
↓ 56 callers
Method
getName
()
impl/src/main/java/io/jsonwebtoken/impl/lang/Nameable.java:20
↓ 53 callers
Method
getKey
()
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:75
↓ 52 callers
Method
get
(String jcaName, Provider provider)
impl/src/main/java/io/jsonwebtoken/impl/security/JcaTemplate.java:345
↓ 52 callers
Method
notEmpty
Assert that an array has elements; that is, it must not be <code>null</code> and must have at least one element. <pre class="code">Assert.notEmpty(arr
api/src/main/java/io/jsonwebtoken/lang/Assert.java:207
↓ 51 callers
Method
length
Returns the length of the array, or {@code 0} if the array is {@code null}. @param a the possibly-null array @param <T> the type of elements in the
api/src/main/java/io/jsonwebtoken/lang/Arrays.java:38
↓ 40 callers
Method
hasText
Check whether the given CharSequence has actual text. More specifically, returns <code>true</code> if the string not <code>null</code>, its length is
api/src/main/java/io/jsonwebtoken/lang/Strings.java:117
↓ 35 callers
Method
isEmpty
Return <code>true</code> if the supplied Collection is <code>null</code> or empty. Otherwise, return <code>false</code>. @param collection the Collec
api/src/main/java/io/jsonwebtoken/lang/Collections.java:209
↓ 33 callers
Method
apply
(T t)
impl/src/main/java/io/jsonwebtoken/impl/lang/Function.java:20
↓ 33 callers
Method
getPayload
Returns the Payload for a JWS or Ciphertext for a JWE. @return the Payload for a JWS or Ciphertext for a JWE.
impl/src/main/java/io/jsonwebtoken/impl/TokenizedJwt.java:36
↓ 32 callers
Method
forKey
Returns the value assigned the specified key or throws an {@code IllegalArgumentException} if there is no associated value. If a value is not require
api/src/main/java/io/jsonwebtoken/lang/Registry.java:49
↓ 31 callers
Method
get
(Registry<String, ?> registry, String id)
api/src/main/java/io/jsonwebtoken/Jwts.java:59
↓ 31 callers
Method
length
(byte[] bytes)
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:197
↓ 29 callers
Method
stateNotNull
Asserts that the specified {@code value} is not null, otherwise throws an {@link IllegalStateException} with the specified {@code msg}. Intended to b
api/src/main/java/io/jsonwebtoken/lang/Assert.java:551
↓ 26 callers
Method
equals
(Object obj)
impl/src/main/java/io/jsonwebtoken/impl/security/AbstractJwk.java:278
↓ 25 callers
Method
and
Add a new entry to this map builder @param key the key of an map entry to be added @param value the value of map entry to be added @return the curr
api/src/main/java/io/jsonwebtoken/lang/Maps.java:71
↓ 25 callers
Method
get
(Parameter<T> param)
impl/src/main/java/io/jsonwebtoken/impl/lang/RequiredParameterReader.java:51
↓ 24 callers
Method
isEmpty
(byte[] bytes)
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:193
↓ 23 callers
Method
newInstance
Creates and returns a new instance of the class with the specified fully qualified class name using the classes default no-argument constructor. @par
api/src/main/java/io/jsonwebtoken/lang/Classes.java:171
↓ 22 callers
Method
clean
Returns the specified string without leading or trailing whitespace, or {@code null} if there are no remaining characters. @param str the string to c
api/src/main/java/io/jsonwebtoken/lang/Strings.java:216
↓ 22 callers
Method
encode
(String data)
impl/src/main/java/io/jsonwebtoken/impl/TextCodec.java:42
↓ 22 callers
Method
get
Returns a result. @return a result.
api/src/main/java/io/jsonwebtoken/lang/Supplier.java:36
↓ 22 callers
Method
isInstanceOf
Assert that the provided object is an instance of the provided class. <pre class="code">Assert.instanceOf(Foo.class, foo);</pre> @param <T> the typ
api/src/main/java/io/jsonwebtoken/lang/Assert.java:362
↓ 22 callers
Method
jca
()
impl/src/main/java/io/jsonwebtoken/impl/security/CryptoAlgorithm.java:59
↓ 22 callers
Method
of
(byte[] bytes)
impl/src/main/java/io/jsonwebtoken/impl/io/Streams.java:53
↓ 22 callers
Method
put
Convenience method to put a value for an idiomatic param. @param param the param representing the property name to set @param value the value to set
impl/src/main/java/io/jsonwebtoken/impl/ParameterMap.java:135
↓ 21 callers
Method
name
()
impl/src/main/java/io/jsonwebtoken/impl/lang/RequiredParameterReader.java:39
↓ 21 callers
Method
write
(final OutputStream out, final byte[] bytes, String exMsg)
impl/src/main/java/io/jsonwebtoken/impl/io/Streams.java:137
↓ 20 callers
Method
get
(Parameter<T> param)
impl/src/main/java/io/jsonwebtoken/impl/DefaultMutableJweHeader.java:33
↓ 20 callers
Method
immutable
Shorter null-safe convenience alias for {@link java.util.Collections#unmodifiableList(List)} so both classes don't need to be imported. @param m ma
api/src/main/java/io/jsonwebtoken/lang/Collections.java:127
↓ 20 callers
Method
toByteArray
Returns the actual thumbprint (aka digest) byte array value. @return the actual thumbprint (aka digest) byte array value.
api/src/main/java/io/jsonwebtoken/security/JwkThumbprint.java:40
↓ 19 callers
Method
bitLength
(byte[] bytes)
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:201
↓ 19 callers
Method
hasLength
Check that the given CharSequence is neither <code>null</code> nor of length 0. Note: Will return <code>true</code> for a CharSequence that purely con
api/src/main/java/io/jsonwebtoken/lang/Strings.java:84
↓ 19 callers
Method
isEmpty
Returns {@code true} if the specified argument: <ol> <li>is {@code null}, or</li> <li>is a CharSequence and {@link Strings#hasText(CharSequenc
api/src/main/java/io/jsonwebtoken/lang/Objects.java:107
↓ 19 callers
Method
remove
Removes the specified element from the collection. @param e the element to remove. @return the mutator/builder for method chaining.
api/src/main/java/io/jsonwebtoken/lang/CollectionMutator.java:60
↓ 19 callers
Method
setConverter
(Converter<T, ?> converter)
impl/src/main/java/io/jsonwebtoken/impl/lang/ParameterBuilder.java:38
↓ 18 callers
Method
builder
Returns a new {@link JwtBuilder} instance that can be configured and then used to create JWT compact serialized strings. @return a new {@link JwtBuil
api/src/main/java/io/jsonwebtoken/Jwts.java:1076
↓ 18 callers
Method
self
()
impl/src/main/java/io/jsonwebtoken/impl/security/AbstractSecurityBuilder.java:28
↓ 17 callers
Method
applyTo
Converts the specified (Java idiomatic type) value to the canonical RFC-required data type. @param a the preferred idiomatic value @return the canoni
impl/src/main/java/io/jsonwebtoken/impl/lang/Converter.java:26
↓ 17 callers
Method
builder
(Class<T> type)
impl/src/main/java/io/jsonwebtoken/impl/lang/Parameters.java:54
↓ 17 callers
Method
getPayload
Returns the JWT payload, either a {@code byte[]} or a {@code Claims} instance. If the payload is a byte array, and <em>if</em> the JWT creator set th
api/src/main/java/io/jsonwebtoken/Jwt.java:86
↓ 17 callers
Method
setId
(String id)
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:39
↓ 17 callers
Method
setName
(String name)
impl/src/main/java/io/jsonwebtoken/impl/lang/ParameterBuilder.java:30
↓ 17 callers
Method
utf8
Returns the specified string's UTF-8 bytes, or {@code null} if the string is {@code null}. @param s the string to obtain UTF-8 bytes @return the spec
api/src/main/java/io/jsonwebtoken/lang/Strings.java:245
↓ 16 callers
Method
equals
(T a, T b, Parameter<T> param)
impl/src/main/java/io/jsonwebtoken/impl/lang/Parameters.java:121
↓ 16 callers
Method
newContext
(JwkContext<?> src, K key)
impl/src/main/java/io/jsonwebtoken/impl/security/JwkFactory.java:24
↓ 15 callers
Method
cast
(Object value)
impl/src/main/java/io/jsonwebtoken/impl/lang/Parameter.java:26
↓ 15 callers
Method
clear
Clears the array by filling it with all zeros. Does nothing with a null or empty argument. @param bytes the (possibly null or empty) byte array to cl
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:188
↓ 15 callers
Method
execute
(Class<T> clazz, CheckedFunction<T, R> callback, Provider provider)
impl/src/main/java/io/jsonwebtoken/impl/security/JcaTemplate.java:113
↓ 15 callers
Method
of
Returns a type-safe immutable {@code List} containing the specified array elements. @param elements array elements to include in the list @param <T>
api/src/main/java/io/jsonwebtoken/lang/Collections.java:78
↓ 15 callers
Method
size
Returns the collection's size or {@code 0} if the collection is {@code null}. @param collection the collection to check. @return the collection's siz
api/src/main/java/io/jsonwebtoken/lang/Collections.java:220
↓ 15 callers
Method
string
(String id, String name)
impl/src/main/java/io/jsonwebtoken/impl/lang/Parameters.java:40
↓ 15 callers
Method
toKey
Represents the JWK as its corresponding Java {@link Key} instance for use with Java cryptographic APIs. @return the JWK's corresponding Java {@link K
api/src/main/java/io/jsonwebtoken/security/Jwk.java:176
↓ 14 callers
Method
contains
(Key key)
impl/src/main/java/io/jsonwebtoken/impl/security/ECCurve.java:129
↓ 14 callers
Method
getHeader
Returns the JWT {@link Header} or {@code null} if not present. @return the JWT {@link Header} or {@code null} if not present.
api/src/main/java/io/jsonwebtoken/Jwt.java:62
↓ 14 callers
Method
getJcaName
()
impl/src/main/java/io/jsonwebtoken/impl/security/AbstractCurve.java:41
↓ 14 callers
Method
getPublic
Returns the pair's public key. @return the pair's public key.
api/src/main/java/io/jsonwebtoken/security/KeyPair.java:36
↓ 14 callers
Method
isTrue
Assert a boolean expression, throwing <code>IllegalArgumentException</code> if the test result is <code>false</code>. <pre class="code">Assert.isTrue(
api/src/main/java/io/jsonwebtoken/lang/Assert.java:39
↓ 14 callers
Method
keyPair
Ensures the builder will create a {@link PrivateJwk} for the specified Java {@link KeyPair} argument. This method is provided for congruence with the
api/src/main/java/io/jsonwebtoken/security/DynamicJwkBuilder.java:241
↓ 14 callers
Method
self
()
impl/src/main/java/io/jsonwebtoken/impl/AbstractX509Context.java:33
↓ 14 callers
Method
withCipher
(CheckedFunction<Cipher, R> fn)
impl/src/main/java/io/jsonwebtoken/impl/security/JcaTemplate.java:163
↓ 13 callers
Method
applyFrom
Converts the specified canonical (RFC-compliant data type) value to the preferred Java idiomatic type. @param b the canonical value to convert @retur
impl/src/main/java/io/jsonwebtoken/impl/lang/Converter.java:34
↓ 13 callers
Method
bitsMsg
(long bitLength)
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:228
↓ 13 callers
Method
decode
(String encoded)
impl/src/main/java/io/jsonwebtoken/impl/TextCodec.java:46
↓ 13 callers
Method
getCurve
(final ParameterReadable reader)
impl/src/main/java/io/jsonwebtoken/impl/security/OctetJwkFactory.java:37
↓ 13 callers
Method
key
Configures the parser's supported {@link KeyAlgorithm}s used to obtain a JWE's decryption key. If the parser encounters a JWE {@link JweHeader#getAlgo
api/src/main/java/io/jsonwebtoken/JwtParserBuilder.java:643
↓ 13 callers
Method
startsWith
(byte[] src, byte[] prefix)
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:140
↓ 12 callers
Method
bytes
(String id, String name)
impl/src/main/java/io/jsonwebtoken/impl/lang/Parameters.java:66
↓ 12 callers
Method
forName
Attempts to load the specified class name from the current thread's {@link Thread#getContextClassLoader() context class loader}, then the current Clas
api/src/main/java/io/jsonwebtoken/lang/Classes.java:69
↓ 12 callers
Method
indexOf
(byte[] source, byte[] target)
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:94
↓ 12 callers
Method
parser
Returns a new {@link JwtParserBuilder} instance that can be configured to create an immutable/thread-safe {@link JwtParser}. @return a new {@link Jwt
api/src/main/java/io/jsonwebtoken/Jwts.java:1085
↓ 12 callers
Method
supports
(Key key)
impl/src/main/java/io/jsonwebtoken/impl/security/FamilyJwkFactory.java:25
↓ 11 callers
Method
accept
(T t, U u)
impl/src/main/java/io/jsonwebtoken/impl/lang/BiConsumer.java:20
↓ 11 callers
Method
claims
()
impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtBuilder.java:123
↓ 11 callers
Method
compact
Actually builds the JWT and serializes it to a compact, URL-safe string according to the <a href="https://www.rfc-editor.org/rfc/rfc7519.html#section-
api/src/main/java/io/jsonwebtoken/JwtBuilder.java:1033
↓ 11 callers
Method
get
Returns the JWTs claim ({@code claimName}) value as a {@code requiredType} instance, or {@code null} if not present. <p>JJWT only converts simple Str
api/src/main/java/io/jsonwebtoken/Claims.java:165
↓ 11 callers
Method
getAlgorithm
()
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:53
↓ 11 callers
Method
getDigest
Returns the Signature for JWS or AAD Tag for JWE. @return the Signature for JWS or AAD Tag for JWE.
impl/src/main/java/io/jsonwebtoken/impl/TokenizedJwt.java:43
↓ 11 callers
Method
put
(Parameter<F> param, F value)
impl/src/main/java/io/jsonwebtoken/impl/DelegatingClaimsMutator.java:45
↓ 11 callers
Method
put
(Parameter<F> param, F value)
impl/src/main/java/io/jsonwebtoken/impl/DefaultJweHeaderMutator.java:57
↓ 10 callers
Method
asList
Converts the specified array to a {@link List}. If the array is empty, an empty list will be returned. @param a the array to represent as a list @p
api/src/main/java/io/jsonwebtoken/lang/Arrays.java:49
↓ 10 callers
Method
clear
Removes all elements in the collection. @return the mutator/builder for method chaining.
api/src/main/java/io/jsonwebtoken/lang/CollectionMutator.java:52
↓ 10 callers
Method
compareTo
(T value, T requirement)
api/src/main/java/io/jsonwebtoken/lang/Assert.java:466
↓ 10 callers
Method
encodeAndWrite
(String name, Map<String, ?> map, OutputStream out)
impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtBuilder.java:795
↓ 10 callers
Method
getEncoded
(Key key)
impl/src/main/java/io/jsonwebtoken/impl/security/KeysBridge.java:143
↓ 10 callers
Method
getParams
()
impl/src/main/java/io/jsonwebtoken/impl/security/PrivateECKey.java:53
↓ 10 callers
Method
getPrivate
Returns the pair's private key. @return the pair's private key.
api/src/main/java/io/jsonwebtoken/security/KeyPair.java:43
↓ 10 callers
Method
getProvider
()
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:83
↓ 10 callers
Method
getValue
Returns the JWA algorithm name constant. @return the JWA algorithm name constant.
api/src/main/java/io/jsonwebtoken/SignatureAlgorithm.java:157
↓ 10 callers
Method
parse
(Reader reader)
impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtParser.java:361
↓ 10 callers
Method
parse
Parse the specified character sequence into a Java object. @param input the character sequence to parse into a Java object. @return the Java object r
api/src/main/java/io/jsonwebtoken/io/Parser.java:35
↓ 10 callers
Method
registry
(Parameter<?>... params)
impl/src/main/java/io/jsonwebtoken/impl/lang/Parameters.java:78
next →
1–100 of 1,993, ranked by callers