Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jwtk/jjwt
/ functions
Functions
1,993 in github.com/jwtk/jjwt
⨍
Functions
1,993
◇
Types & classes
477
↓ 10 callers
Method
reset
(final InputStream in)
impl/src/main/java/io/jsonwebtoken/impl/io/Streams.java:119
↓ 10 callers
Method
setOf
Returns a type-safe immutable {@code Set} containing the specified array elements. @param elements array elements to include in the set @param <T>
api/src/main/java/io/jsonwebtoken/lang/Collections.java:108
↓ 10 callers
Method
thumbprint
Computes and returns the canonical <a href="https://www.rfc-editor.org/rfc/rfc7638">JWK Thumbprint</a> of this JWK using the {@code SHA-256} hash algo
api/src/main/java/io/jsonwebtoken/security/Jwk.java:158
↓ 9 callers
Method
assertKey
(Key key, Class<K> clazz, String msgPrefix)
impl/src/main/java/io/jsonwebtoken/impl/security/KeyPairs.java:50
↓ 9 callers
Method
concat
(byte[]... arrays)
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:163
↓ 9 callers
Method
end
Returns the index in the character sequence to end reading at, taking into account its length. @return The end index in the character sequence (exclu
impl/src/main/java/io/jsonwebtoken/impl/io/CharSequenceReader.java:145
↓ 9 callers
Method
isArray
Returns {@code true} if the specified argument is an Object or primitive array, {@code false} otherwise. @param obj the object instance to check @ret
api/src/main/java/io/jsonwebtoken/lang/Objects.java:89
↓ 9 callers
Method
keyType
@since 0.10.0 to support assertValid(Key, boolean)
api/src/main/java/io/jsonwebtoken/SignatureAlgorithm.java:336
↓ 9 callers
Method
multiply
Multiply this curve's generator (aka 'base point') by scalar {@code s} on the curve. @param s the scalar value to multiply
impl/src/main/java/io/jsonwebtoken/impl/security/ECCurve.java:196
↓ 9 callers
Method
nullSafeClose
Iterate over the specified {@link Closeable} instances, invoking {@link Closeable#close()} on each one, ignoring any potential {@link IOException}s.
api/src/main/java/io/jsonwebtoken/lang/Objects.java:997
↓ 9 callers
Method
read
()
impl/src/main/java/io/jsonwebtoken/impl/io/ClosedInputStream.java:33
↓ 9 callers
Method
secretBigInt
(String id, String name)
impl/src/main/java/io/jsonwebtoken/impl/lang/Parameters.java:74
↓ 9 callers
Method
toString
(Key key)
impl/src/main/java/io/jsonwebtoken/impl/security/KeysBridge.java:160
↓ 8 callers
Method
concat
Concatenate the specified set with the specified array elements, resulting in a new {@link LinkedHashSet} with the array elements appended to the end
api/src/main/java/io/jsonwebtoken/lang/Collections.java:269
↓ 8 callers
Method
containsKey
(Object key)
impl/src/main/java/io/jsonwebtoken/impl/security/AbstractJwk.java:200
↓ 8 callers
Method
createJwk
(JwkContext<K> ctx)
impl/src/main/java/io/jsonwebtoken/impl/security/JwkFactory.java:26
↓ 8 callers
Method
get
Returns a registry of all standard Key Operations in the {@code JSON Web Key Operations Registry} defined by <a href="https://datatracker.ietf.org/doc
api/src/main/java/io/jsonwebtoken/security/Jwks.java:418
↓ 8 callers
Method
getKey
(KeyPair pair, Class<K> clazz)
impl/src/main/java/io/jsonwebtoken/impl/security/KeyPairs.java:42
↓ 8 callers
Method
getPublicKey
()
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:79
↓ 8 callers
Method
header
()
impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtBuilder.java:118
↓ 8 callers
Method
nullSafeEquals
Determine if the given objects are equal, returning <code>true</code> if both are <code>null</code> or <code>false</code> if only one is <code>null</c
api/src/main/java/io/jsonwebtoken/lang/Objects.java:294
↓ 8 callers
Method
nullSafeHashCode
Return as hash code for the given object; typically the value of <code>{@link Object#hashCode()}</code>. If the object is an array, this method will d
api/src/main/java/io/jsonwebtoken/lang/Objects.java:355
↓ 8 callers
Method
of
(String id, String description, String related)
impl/src/main/java/io/jsonwebtoken/impl/security/DefaultKeyOperation.java:45
↓ 8 callers
Method
parser
Returns a new builder used to create {@link Parser}s that parse JSON into {@link Jwk} instances. For example: <blockquote><pre> Jwk<?> jwk = Jwk
api/src/main/java/io/jsonwebtoken/security/Jwks.java:84
↓ 8 callers
Method
set
()
impl/src/main/java/io/jsonwebtoken/impl/lang/ParameterBuilder.java:36
↓ 8 callers
Method
setKey
(K key)
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:77
↓ 7 callers
Method
assertEdwards
(K key)
impl/src/main/java/io/jsonwebtoken/impl/security/EdwardsCurve.java:374
↓ 7 callers
Method
bytes
(final InputStream in, String exmsg)
impl/src/main/java/io/jsonwebtoken/impl/io/Streams.java:43
↓ 7 callers
Method
contains
Check whether the given Iterator contains the given element. @param iterator the Iterator to check @param element the element to look for @return <c
api/src/main/java/io/jsonwebtoken/lang/Collections.java:328
↓ 7 callers
Method
digest
Returns a cryptographic digest of the request {@link Request#getPayload() payload}. @param request the request containing the data to be hashed, mac'
api/src/main/java/io/jsonwebtoken/security/DigestAlgorithm.java:88
↓ 7 callers
Method
emptySet
Returns a type-safe immutable empty {@code Set}. @param <T> set element type @return a type-safe immutable empty {@code Set}.
api/src/main/java/io/jsonwebtoken/lang/Collections.java:54
↓ 7 callers
Method
ensureSecureRandom
(Request<?> request)
impl/src/main/java/io/jsonwebtoken/impl/security/CryptoAlgorithm.java:54
↓ 7 callers
Method
findAlgorithm
(Key key)
impl/src/main/java/io/jsonwebtoken/impl/security/KeysBridge.java:75
↓ 7 callers
Method
findByKey
(Key key)
impl/src/main/java/io/jsonwebtoken/impl/security/EdwardsCurve.java:312
↓ 7 callers
Method
generateKey
(final JwkContext<K> ctx, final CheckedFunction<KeyFactory, K> fn)
impl/src/main/java/io/jsonwebtoken/impl/security/AbstractFamilyJwkFactory.java:73
↓ 7 callers
Method
get
(String claimName, Class<T> requiredType)
impl/src/main/java/io/jsonwebtoken/impl/DefaultClaims.java:103
↓ 7 callers
Method
get
Returns a registry of all standard Elliptic Curves in the {@code JSON Web Key Elliptic Curve Registry} defined by <a href="https://datatracker.ietf.or
api/src/main/java/io/jsonwebtoken/security/Jwks.java:174
↓ 7 callers
Method
getBytes
()
impl/src/main/java/io/jsonwebtoken/impl/Payload.java:143
↓ 7 callers
Method
getKeyBitLength
Returns the required length in bits <em>(not bytes)</em> of keys usable with the associated algorithm. @return the required length in bits <em>(not b
api/src/main/java/io/jsonwebtoken/security/KeyLengthSupplier.java:30
↓ 7 callers
Method
getType
()
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:45
↓ 7 callers
Method
idFromThumbprint
Sets the JWK's {@link #id(String) kid} value to be the Base64URL-encoding of its {@code SHA-256} {@link Jwk#thumbprint(HashAlgorithm) thumbprint}. Th
api/src/main/java/io/jsonwebtoken/security/JwkBuilder.java:93
↓ 7 callers
Method
isClaims
()
impl/src/main/java/io/jsonwebtoken/impl/Payload.java:77
↓ 7 callers
Method
nullSafe
Returns a non-null set, either {@code s} if it is not null, or {@link #emptySet()} otherwise. @param s the set to check for null @param <T> type of
api/src/main/java/io/jsonwebtoken/lang/Collections.java:186
↓ 7 callers
Method
onThrowable
Handle any Throwable thrown; by default, throws the given exception. <p> This method provides a point to implement custom exception handling. The defa
impl/src/main/java/io/jsonwebtoken/impl/io/FilteredInputStream.java:135
↓ 7 callers
Method
random
Sets the {@link SecureRandom} to use during cryptographic signing or encryption operations, or {@code null} if a default {@link SecureRandom} should b
api/src/main/java/io/jsonwebtoken/JwtBuilder.java:73
↓ 7 callers
Method
secureRandom
Returns JJWT's default SecureRandom number generator - a static singleton which may be cached if desired. The RNG is initialized using the JVM default
impl/src/main/java/io/jsonwebtoken/impl/security/Randoms.java:51
↓ 7 callers
Method
setId
(String id)
impl/src/main/java/io/jsonwebtoken/impl/lang/ParameterBuilder.java:28
↓ 7 callers
Method
state
Assert a boolean expression, throwing <code>IllegalStateException</code> if the test result is <code>false</code>. Call isTrue if you wish to throw Il
api/src/main/java/io/jsonwebtoken/lang/Assert.java:519
↓ 7 callers
Method
toArray
Marshal the elements from the given enumeration into an array of the given type. Enumeration elements must be assignable to the type of the given arra
api/src/main/java/io/jsonwebtoken/lang/Collections.java:530
↓ 7 callers
Method
verifyWith
Sets the signature verification SecretKey used to verify all encountered JWS signatures. If the encountered JWT string is not a JWS (e.g. unsigned or
api/src/main/java/io/jsonwebtoken/JwtParserBuilder.java:393
↓ 7 callers
Method
wrap
Returns a {@code CharBuffer} that wraps {@code seq}, or an empty buffer if {@code seq} is null. If {@code seq} is already a {@code CharBuffer}, it is
api/src/main/java/io/jsonwebtoken/lang/Strings.java:302
↓ 6 callers
Method
bigInt
(String id, String name)
impl/src/main/java/io/jsonwebtoken/impl/lang/Parameters.java:70
↓ 6 callers
Method
decode
(CharSequence base64UrlEncoded, String name)
impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtParser.java:880
↓ 6 callers
Method
findBitLength
Returns the specified key's key length (in bits) if possible, or {@code -1} if unable to determine the length. @param key the key to inspect @return
impl/src/main/java/io/jsonwebtoken/impl/security/KeysBridge.java:114
↓ 6 callers
Method
flush
(Flushable... flushables)
impl/src/main/java/io/jsonwebtoken/impl/io/Streams.java:73
↓ 6 callers
Method
forKey
(Key key)
impl/src/main/java/io/jsonwebtoken/impl/security/EdwardsCurve.java:363
↓ 6 callers
Method
generateKeyPair
()
impl/src/main/java/io/jsonwebtoken/impl/security/JcaTemplate.java:217
↓ 6 callers
Method
generatePublic
(final KeySpec spec)
impl/src/main/java/io/jsonwebtoken/impl/security/JcaTemplate.java:246
↓ 6 callers
Method
get
Returns all standard JWA <a href="https://www.rfc-editor.org/rfc/rfc7518.html#section-5">Cryptographic Algorithms for Content Encryption</a> defined i
api/src/main/java/io/jsonwebtoken/Jwts.java:93
↓ 6 callers
Method
get
Returns a registry of various (<em>but not all</em>) <a href="https://www.iana.org/assignments/named-information/named-information.xhtml#hash-alg">IAN
api/src/main/java/io/jsonwebtoken/security/Jwks.java:302
↓ 6 callers
Method
getEncryptionAlgorithm
Returns the JWE <a href="https://tools.ietf.org/html/rfc7516#section-4.1.2">{@code enc} (Encryption Algorithm)</a> header value or {@code null} if not
api/src/main/java/io/jsonwebtoken/JweHeader.java:52
↓ 6 callers
Method
getIvSpec
(byte[] iv)
impl/src/main/java/io/jsonwebtoken/impl/security/AesAlgorithm.java:171
↓ 6 callers
Method
getSecureRandom
Returns the {@code SecureRandom} to use when performing cryptographic operations during the request, or {@code null} if a default {@link SecureRandom}
api/src/main/java/io/jsonwebtoken/security/Request.java:56
↓ 6 callers
Method
gt
Asserts that a specified {@code value} is greater than the given {@code requirement}, throwing an {@link IllegalArgumentException} with the given mess
api/src/main/java/io/jsonwebtoken/lang/Assert.java:483
↓ 6 callers
Method
key
(SecretKey key)
impl/src/main/java/io/jsonwebtoken/impl/security/DefaultDynamicJwkBuilder.java:57
↓ 6 callers
Method
keyType
(boolean signing)
impl/src/main/java/io/jsonwebtoken/impl/security/AbstractSecureDigestAlgorithm.java:35
↓ 6 callers
Method
nespace
Appends a space character (<code>' '</code>) if the argument is not empty, otherwise does nothing. This method can be thought of as "non-empty s
api/src/main/java/io/jsonwebtoken/lang/Strings.java:1360
↓ 6 callers
Method
next
()
impl/src/main/java/io/jsonwebtoken/impl/ParameterMap.java:323
↓ 6 callers
Method
signWith
Signs the constructed JWT with the specified key using the key's <em>recommended signature algorithm</em> as defined below, producing a JWS. If the r
api/src/main/java/io/jsonwebtoken/JwtBuilder.java:723
↓ 6 callers
Method
stateIsInstance
Asserts that the provided object is an instance of the provided class, throwing an {@link IllegalStateException} otherwise. <pre class="code">Assert.s
api/src/main/java/io/jsonwebtoken/lang/Assert.java:407
↓ 6 callers
Method
toCharArray
Returns a new clone of the underlying password character array for use during derivation algorithms. Like all {@code SecretKey} implementations, if y
api/src/main/java/io/jsonwebtoken/security/Password.java:62
↓ 6 callers
Method
values
()
impl/src/main/java/io/jsonwebtoken/impl/ParameterMap.java:229
↓ 6 callers
Method
withSignature
(CheckedFunction<Signature, R> fn)
impl/src/main/java/io/jsonwebtoken/impl/security/JcaTemplate.java:191
↓ 6 callers
Method
x509Chain
Sets the {@code x5c} (X.509 Certificate Chain) of the associated JWT or JWK. A {@code null} value will remove the property from the JSON map. The init
api/src/main/java/io/jsonwebtoken/security/X509Mutator.java:88
↓ 5 callers
Method
UNSAFE_JSON
<b>WARNING - UNSAFE OPERATION - RETURN VALUES CONTAIN RAW KEY MATERIAL, DO NOT LOG OR PRINT TO SYSTEM.OUT.</b> Converts the specified JWK into JSON, i
api/src/main/java/io/jsonwebtoken/security/Jwks.java:142
↓ 5 callers
Method
assertValidSigningKey
Returns quietly if the specified key is allowed to create signatures using this algorithm according to the <a href="https://tools.ietf.org/html/rfc751
api/src/main/java/io/jsonwebtoken/SignatureAlgorithm.java:316
↓ 5 callers
Method
containsKey
(Object o)
impl/src/main/java/io/jsonwebtoken/impl/ParameterMap.java:112
↓ 5 callers
Method
ctoi
(char c)
api/src/main/java/io/jsonwebtoken/io/Base64.java:217
↓ 5 callers
Method
decryptWith
Sets the decryption SecretKey used to decrypt all encountered JWEs. If the encountered JWT string is not a JWE (e.g. a JWS), this key is not used. <p
api/src/main/java/io/jsonwebtoken/JwtParserBuilder.java:436
↓ 5 callers
Method
delete
Removes the map entry with the specified key. <p>This method is the same as {@link Map#remove Map.remove}, but instead returns the mutator instance fo
api/src/main/java/io/jsonwebtoken/lang/MapMutator.java:40
↓ 5 callers
Method
encode
Convert the specified data into another formatted data value. @param t the data to convert @return the resulting formatted data value @throws Encodin
api/src/main/java/io/jsonwebtoken/io/Encoder.java:34
↓ 5 callers
Method
encryptWith
Encrypts the constructed JWT with the specified symmetric {@code key} using the provided {@code enc}ryption algorithm, producing a JWE. Because it is
api/src/main/java/io/jsonwebtoken/JwtBuilder.java:892
↓ 5 callers
Method
forEncoded
(Class<T> elementType, Converter<T, CharSequence> elementConverter)
impl/src/main/java/io/jsonwebtoken/impl/lang/Converters.java:56
↓ 5 callers
Method
formatIso8601
Return an ISO-8601-formatted string with millisecond precision representing the specified {@code date}. @param date the date for which to create an I
api/src/main/java/io/jsonwebtoken/lang/DateFormats.java:63
↓ 5 callers
Method
generatePrivate
(KeyFactory factory, KeySpec spec)
impl/src/main/java/io/jsonwebtoken/impl/security/JcaTemplate.java:310
↓ 5 callers
Method
getCollection
()
impl/src/main/java/io/jsonwebtoken/impl/lang/DefaultCollectionMutator.java:80
↓ 5 callers
Method
getIdThumbprintAlgorithm
()
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:43
↓ 5 callers
Method
getOperations
()
impl/src/main/java/io/jsonwebtoken/impl/security/JwkContext.java:49
↓ 5 callers
Method
getSubject
Returns the JWT <a href="https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.2"> <code>sub</code></a> (subject) value or {@code null} if not prese
api/src/main/java/io/jsonwebtoken/Claims.java:91
↓ 5 callers
Method
hashCode
Return the same value as <code>{@link Boolean#hashCode()}</code>. @param bool the boolean to get a hashcode @return the same value as {@link Boolean#
api/src/main/java/io/jsonwebtoken/lang/Objects.java:569
↓ 5 callers
Method
isHmac
Returns {@code true} if the enum instance represents an HMAC signature algorithm, {@code false} otherwise. @return {@code true} if the enum instance
api/src/main/java/io/jsonwebtoken/SignatureAlgorithm.java:269
↓ 5 callers
Method
length
(byte[] bytes)
impl/src/main/java/io/jsonwebtoken/impl/io/BaseNCodec.java:400
↓ 5 callers
Method
nextBytes
(byte[] bytes)
impl/src/main/java/io/jsonwebtoken/impl/security/EdwardsPublicKeyDeriver.java:66
↓ 5 callers
Method
onThrowable
Handle any IOExceptions thrown. <p> This method provides a point to implement custom exception handling. The default behavior is to re-throw the excep
impl/src/main/java/io/jsonwebtoken/impl/io/FilteredOutputStream.java:122
↓ 5 callers
Method
parseSignedClaims
Parses the {@code jws} argument, expected to be a cryptographically-signed {@code Claims} JWS. This is a convenience method logically equivalent to th
api/src/main/java/io/jsonwebtoken/JwtParser.java:331
↓ 5 callers
Method
publicKey
Sets the private key's corresponding {@code PublicKey} so that its public key material will be available to algorithms that require it. @param public
api/src/main/java/io/jsonwebtoken/security/PrivateKeyBuilder.java:37
↓ 5 callers
Method
serialize
Converts the specified Java object into a formatted data byte array. @param t the object to serialize @return the serialized byte array representing
api/src/main/java/io/jsonwebtoken/io/Serializer.java:37
↓ 5 callers
Method
setDelegate
(T delegate)
impl/src/main/java/io/jsonwebtoken/impl/lang/DelegatingMap.java:45
↓ 5 callers
Method
setSecret
(boolean secret)
impl/src/main/java/io/jsonwebtoken/impl/lang/ParameterBuilder.java:32
↓ 5 callers
Method
toBytes
(int i)
impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:52
← previous
next →
101–200 of 1,993, ranked by callers