- capitalize(String) - Static method in class io.jsonwebtoken.lang.Strings
-
- caseInsensitiveValueOf(E[], String) - Static method in class io.jsonwebtoken.lang.Objects
-
- claim(String, Object) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets a custom JWT Claims parameter value.
- ClaimJwtException - Exception in io.jsonwebtoken
-
ClaimJwtException is a subclass of the
JwtException that is thrown after a validation of an JTW claim failed.
- ClaimJwtException(Header, Claims, String) - Constructor for exception io.jsonwebtoken.ClaimJwtException
-
- ClaimJwtException(Header, Claims, String, Throwable) - Constructor for exception io.jsonwebtoken.ClaimJwtException
-
- Claims - Interface in io.jsonwebtoken
-
- claims() - Static method in class io.jsonwebtoken.Jwts
-
Returns a new
Claims instance to be used as a JWT body.
- claims(Map<String, Object>) - Static method in class io.jsonwebtoken.Jwts
-
Returns a new
Claims instance populated with the specified name/value pairs.
- ClaimsMutator<T extends ClaimsMutator> - Interface in io.jsonwebtoken
-
Mutation (modifications) to a
Claims instance.
- Classes - Class in io.jsonwebtoken.lang
-
- clean(byte[]) - Static method in class io.jsonwebtoken.lang.Arrays
-
- clean(String) - Static method in class io.jsonwebtoken.lang.Strings
-
- clean(CharSequence) - Static method in class io.jsonwebtoken.lang.Strings
-
- cleanPath(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Normalize the path by suppressing sequences like "path/.." and
inner simple dots.
- Clock - Interface in io.jsonwebtoken
-
A clock represents a time source that can be used when creating and verifying JWTs.
- CodecException - Exception in io.jsonwebtoken.io
-
- CodecException(String) - Constructor for exception io.jsonwebtoken.io.CodecException
-
- CodecException(String, Throwable) - Constructor for exception io.jsonwebtoken.io.CodecException
-
- Collections - Class in io.jsonwebtoken.lang
-
- collectionToCommaDelimitedString(Collection<?>) - Static method in class io.jsonwebtoken.lang.Strings
-
Convenience method to return a Collection as a CSV String.
- collectionToDelimitedString(Collection<?>, String, String, String) - Static method in class io.jsonwebtoken.lang.Strings
-
Convenience method to return a Collection as a delimited (e.g.
- collectionToDelimitedString(Collection<?>, String) - Static method in class io.jsonwebtoken.lang.Strings
-
Convenience method to return a Collection as a delimited (e.g.
- commaDelimitedListToSet(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Convenience method to convert a CSV string list to a set.
- commaDelimitedListToStringArray(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Convert a CSV list into an array of Strings.
- compact() - Method in interface io.jsonwebtoken.JwtBuilder
-
- compress(byte[]) - Method in interface io.jsonwebtoken.CompressionCodec
-
Compresses the specified byte array according to the compression
algorithm.
- COMPRESSION_ALGORITHM - Static variable in interface io.jsonwebtoken.Header
-
JWT Compression Algorithm header parameter name: "zip"
- CompressionCodec - Interface in io.jsonwebtoken
-
Compresses and decompresses byte arrays according to a compression algorithm.
- CompressionCodecResolver - Interface in io.jsonwebtoken
-
Looks for a JWT
zip header, and if found, returns the corresponding
CompressionCodec the parser
can use to decompress the JWT body.
- CompressionCodecs - Class in io.jsonwebtoken
-
- CompressionException - Exception in io.jsonwebtoken
-
Exception indicating that either compressing or decompressing an JWT body failed.
- CompressionException(String) - Constructor for exception io.jsonwebtoken.CompressionException
-
- CompressionException(String, Throwable) - Constructor for exception io.jsonwebtoken.CompressionException
-
- compressWith(CompressionCodec) - Method in interface io.jsonwebtoken.JwtBuilder
-
- concatenateStringArrays(String[], String[]) - Static method in class io.jsonwebtoken.lang.Strings
-
Concatenate the given String arrays into one,
with overlapping array elements included twice.
- contains(Iterator, Object) - Static method in class io.jsonwebtoken.lang.Collections
-
Check whether the given Iterator contains the given element.
- contains(Enumeration, Object) - Static method in class io.jsonwebtoken.lang.Collections
-
Check whether the given Enumeration contains the given element.
- containsAny(Collection, Collection) - Static method in class io.jsonwebtoken.lang.Collections
-
Return true if any element in 'candidates' is
contained in 'source'; otherwise returns false.
- containsConstant(Enum<?>[], String) - Static method in class io.jsonwebtoken.lang.Objects
-
Check whether the given array of enum constants contains a constant with the given name,
ignoring case when determining a match.
- containsConstant(Enum<?>[], String, boolean) - Static method in class io.jsonwebtoken.lang.Objects
-
Check whether the given array of enum constants contains a constant with the given name.
- containsElement(Object[], Object) - Static method in class io.jsonwebtoken.lang.Objects
-
Check whether the given array contains the given element.
- containsInstance(Collection, Object) - Static method in class io.jsonwebtoken.lang.Collections
-
Check whether the given Collection contains the given element instance.
- containsWhitespace(CharSequence) - Static method in class io.jsonwebtoken.lang.Strings
-
Check whether the given CharSequence contains any whitespace characters.
- containsWhitespace(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Check whether the given String contains any whitespace characters.
- CONTENT_TYPE - Static variable in interface io.jsonwebtoken.Header
-
JWT Content Type header parameter name: "cty"
- countOccurrencesOf(String, String) - Static method in class io.jsonwebtoken.lang.Strings
-
Count the occurrences of the substring in string s.
- CRITICAL - Static variable in interface io.jsonwebtoken.JwsHeader
-
JWS Critical header parameter name: "crit"
- hashCode(boolean) - Static method in class io.jsonwebtoken.lang.Objects
-
- hashCode(double) - Static method in class io.jsonwebtoken.lang.Objects
-
- hashCode(float) - Static method in class io.jsonwebtoken.lang.Objects
-
- hashCode(long) - Static method in class io.jsonwebtoken.lang.Objects
-
- hasLength(String, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that the given String is not empty; that is,
it must not be null and not the empty String.
- hasLength(String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that the given String is not empty; that is,
it must not be null and not the empty String.
- hasLength(CharSequence) - Static method in class io.jsonwebtoken.lang.Strings
-
Check that the given CharSequence is neither null nor of length 0.
- hasLength(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Check that the given String is neither null nor of length 0.
- hasText(String, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that the given String has valid text content; that is, it must not
be null and must contain at least one non-whitespace character.
- hasText(String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that the given String has valid text content; that is, it must not
be null and must contain at least one non-whitespace character.
- hasText(CharSequence) - Static method in class io.jsonwebtoken.lang.Strings
-
Check whether the given CharSequence has actual text.
- hasText(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Check whether the given String has actual text.
- hasUniqueObject(Collection) - Static method in class io.jsonwebtoken.lang.Collections
-
Determine whether the given Collection only contains a single unique object.
- Header<T extends Header<T>> - Interface in io.jsonwebtoken
-
- header() - Static method in class io.jsonwebtoken.Jwts
-
Creates a new
Header instance suitable for
plaintext (not digitally signed) JWTs.
- header(Map<String, Object>) - Static method in class io.jsonwebtoken.Jwts
-
Creates a new
Header instance suitable for
plaintext (not digitally signed) JWTs, populated
with the specified name/value pairs.
- hmacShaKeyFor(byte[]) - Static method in class io.jsonwebtoken.security.Keys
-
Creates a new SecretKey instance for use with HMAC-SHA algorithms based on the specified key byte array.
- ID - Static variable in interface io.jsonwebtoken.Claims
-
JWT JWT ID claims parameter name: "jti"
- identityToString(Object) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of an object's overall identity.
- INCORRECT_EXPECTED_CLAIM_MESSAGE_TEMPLATE - Static variable in exception io.jsonwebtoken.ClaimJwtException
-
- IncorrectClaimException - Exception in io.jsonwebtoken
-
Exception thrown when discovering that a required claim does not equal the required value, indicating the JWT is
invalid and may not be used.
- IncorrectClaimException(Header, Claims, String) - Constructor for exception io.jsonwebtoken.IncorrectClaimException
-
- IncorrectClaimException(Header, Claims, String, Throwable) - Constructor for exception io.jsonwebtoken.IncorrectClaimException
-
- instantiate(Constructor<T>, Object...) - Static method in class io.jsonwebtoken.lang.Classes
-
- InstantiationException - Exception in io.jsonwebtoken.lang
-
- InstantiationException(String, Throwable) - Constructor for exception io.jsonwebtoken.lang.InstantiationException
-
- InvalidClaimException - Exception in io.jsonwebtoken
-
Exception indicating a parsed claim is invalid in some way.
- InvalidClaimException(Header, Claims, String) - Constructor for exception io.jsonwebtoken.InvalidClaimException
-
- InvalidClaimException(Header, Claims, String, Throwable) - Constructor for exception io.jsonwebtoken.InvalidClaimException
-
- InvalidKeyException - Exception in io.jsonwebtoken.security
-
- InvalidKeyException(String) - Constructor for exception io.jsonwebtoken.security.InvalidKeyException
-
- invokeStatic(String, String, Class[], Object...) - Static method in class io.jsonwebtoken.lang.Classes
-
- io.jsonwebtoken - package io.jsonwebtoken
-
- io.jsonwebtoken.io - package io.jsonwebtoken.io
-
- io.jsonwebtoken.lang - package io.jsonwebtoken.lang
-
- io.jsonwebtoken.security - package io.jsonwebtoken.security
-
- IOException - Exception in io.jsonwebtoken.io
-
- IOException(String) - Constructor for exception io.jsonwebtoken.io.IOException
-
- IOException(String, Throwable) - Constructor for exception io.jsonwebtoken.io.IOException
-
- isArray(Object) - Static method in class io.jsonwebtoken.lang.Objects
-
Determine whether the given object is an array:
either an Object array or a primitive array.
- isAssignable(Class, Class) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that superType.isAssignableFrom(subType) is true.
- isAssignable(Class, Class, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that superType.isAssignableFrom(subType) is true.
- isAvailable(String) - Static method in class io.jsonwebtoken.lang.Classes
-
- isCheckedException(Throwable) - Static method in class io.jsonwebtoken.lang.Objects
-
Return whether the given throwable is a checked exception:
that is, neither a RuntimeException nor an Error.
- isCompatibleWithThrowsClause(Throwable, Class[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Check whether the given exception is compatible with the exceptions
declared in a throws clause.
- isEllipticCurve() - Method in enum io.jsonwebtoken.SignatureAlgorithm
-
Returns true if the enum instance represents an Elliptic Curve ECDSA signature algorithm, false
otherwise.
- isEmpty(Collection) - Static method in class io.jsonwebtoken.lang.Collections
-
Return true if the supplied Collection is null
or empty.
- isEmpty(Map) - Static method in class io.jsonwebtoken.lang.Collections
-
Return true if the supplied Map is null
or empty.
- isEmpty(Object[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Determine whether the given array is empty:
i.e.
- isEmpty(byte[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Returns true if the specified byte array is null or of zero length, false otherwise.
- isHmac() - Method in enum io.jsonwebtoken.SignatureAlgorithm
-
Returns true if the enum instance represents an HMAC signature algorithm, false otherwise.
- isInstanceOf(Class, Object) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that the provided object is an instance of the provided class.
- isInstanceOf(Class, Object, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that the provided object is an instance of the provided class.
- isJdkStandard() - Method in enum io.jsonwebtoken.SignatureAlgorithm
-
Returns true if the algorithm is supported by standard JDK distributions or false if the
algorithm implementation is not in the JDK and must be provided by a separate runtime JCA Provider (like
BouncyCastle for example).
- isNull(Object, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that an object is null .
- isNull(Object) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that an object is null .
- isRsa() - Method in enum io.jsonwebtoken.SignatureAlgorithm
-
Returns true if the enum instance represents an RSA public/private key pair signature algorithm,
false otherwise.
- isSigned(String) - Method in interface io.jsonwebtoken.JwtParser
-
Returns true if the specified JWT compact string represents a signed JWT (aka a 'JWS'), false
otherwise.
- ISSUED_AT - Static variable in interface io.jsonwebtoken.Claims
-
JWT Issued At claims parameter name: "iat"
- ISSUER - Static variable in interface io.jsonwebtoken.Claims
-
JWT Issuer claims parameter name: "iss"
- isTrue(boolean, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert a boolean expression, throwing IllegalArgumentException
if the test result is false.
- isTrue(boolean) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert a boolean expression, throwing IllegalArgumentException
if the test result is false.
- newInstance(String) - Static method in class io.jsonwebtoken.lang.Classes
-
- newInstance(String, Class[], Object...) - Static method in class io.jsonwebtoken.lang.Classes
-
- newInstance(String, Object...) - Static method in class io.jsonwebtoken.lang.Classes
-
- newInstance(Class<T>) - Static method in class io.jsonwebtoken.lang.Classes
-
- newInstance(Class<T>, Object...) - Static method in class io.jsonwebtoken.lang.Classes
-
- noNullElements(Object[], String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that an array has no null elements.
- noNullElements(Object[]) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that an array has no null elements.
- NOT_BEFORE - Static variable in interface io.jsonwebtoken.Claims
-
JWT Not Before claims parameter name: "nbf"
- notEmpty(Object[], String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that an array has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Object[]) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that an array has elements; that is, it must not be
null and must have at least one element.
- notEmpty(byte[], String) - Static method in class io.jsonwebtoken.lang.Assert
-
- notEmpty(Collection, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that a collection has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Collection) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that a collection has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Map, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that a Map has entries; that is, it must not be null
and must have at least one entry.
- notEmpty(Map) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that a Map has entries; that is, it must not be null
and must have at least one entry.
- notNull(Object, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that an object is not null .
- notNull(Object) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert that an object is not null .
- now() - Method in interface io.jsonwebtoken.Clock
-
Returns the clock's current timestamp at the instant the method is invoked.
- nullSafeClassName(Object) - Static method in class io.jsonwebtoken.lang.Objects
-
Determine the class name for the given object.
- nullSafeClose(Closeable...) - Static method in class io.jsonwebtoken.lang.Objects
-
- nullSafeEquals(Object, Object) - Static method in class io.jsonwebtoken.lang.Objects
-
Determine if the given objects are equal, returning true
if both are null or false if only one is
null.
- nullSafeHashCode(Object) - Static method in class io.jsonwebtoken.lang.Objects
-
- nullSafeHashCode(Object[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(boolean[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(byte[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(char[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(double[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(float[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(int[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(long[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(short[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeToString(Object) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the specified Object.
- nullSafeToString(Object[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(boolean[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(byte[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(char[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(double[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(float[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(int[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(long[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(short[]) - Static method in class io.jsonwebtoken.lang.Objects
-
Return a String representation of the contents of the specified array.
- secretKeyFor(SignatureAlgorithm) - Static method in class io.jsonwebtoken.security.Keys
-
- SecurityException - Exception in io.jsonwebtoken.security
-
- SecurityException(String) - Constructor for exception io.jsonwebtoken.security.SecurityException
-
- SecurityException(String, Throwable) - Constructor for exception io.jsonwebtoken.security.SecurityException
-
- SEPARATOR_CHAR - Static variable in interface io.jsonwebtoken.JwtParser
-
- SerialException - Exception in io.jsonwebtoken.io
-
- SerialException(String) - Constructor for exception io.jsonwebtoken.io.SerialException
-
- SerialException(String, Throwable) - Constructor for exception io.jsonwebtoken.io.SerialException
-
- SerializationException - Exception in io.jsonwebtoken.io
-
- SerializationException(String) - Constructor for exception io.jsonwebtoken.io.SerializationException
-
- SerializationException(String, Throwable) - Constructor for exception io.jsonwebtoken.io.SerializationException
-
- serialize(T) - Method in interface io.jsonwebtoken.io.Serializer
-
- Serializer<T> - Interface in io.jsonwebtoken.io
-
- serializeToJsonWith(Serializer<Map<String, ?>>) - Method in interface io.jsonwebtoken.JwtBuilder
-
Performs object-to-JSON serialization with the specified Serializer.
- setAlgorithm(String) - Method in interface io.jsonwebtoken.JwsHeader
-
Sets the JWT
alg (Algorithm) header value.
- setAllowedClockSkewSeconds(long) - Method in interface io.jsonwebtoken.JwtParser
-
Sets the amount of clock skew in seconds to tolerate when verifying the local time against the exp
and nbf claims.
- setAudience(String) - Method in interface io.jsonwebtoken.Claims
-
Sets the JWT
aud (audience) value.
- setAudience(String) - Method in interface io.jsonwebtoken.ClaimsMutator
-
Sets the JWT
aud (audience) value.
- setAudience(String) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT Claims
aud (audience) value.
- setClaimName(String) - Method in exception io.jsonwebtoken.InvalidClaimException
-
- setClaims(Claims) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT payload to be a JSON Claims instance.
- setClaims(Map<String, Object>) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT payload to be a JSON Claims instance populated by the specified name/value pairs.
- setClaimValue(Object) - Method in exception io.jsonwebtoken.InvalidClaimException
-
- setClock(Clock) - Method in interface io.jsonwebtoken.JwtParser
-
Sets the
Clock that determines the timestamp to use when validating the parsed JWT.
- setCompressionAlgorithm(String) - Method in interface io.jsonwebtoken.Header
-
Sets the JWT zip (Compression Algorithm) header parameter value.
- setCompressionCodecResolver(CompressionCodecResolver) - Method in interface io.jsonwebtoken.JwtParser
-
- setContentType(String) - Method in interface io.jsonwebtoken.Header
-
Sets the JWT
cty (Content Type) header parameter value.
- setExpiration(Date) - Method in interface io.jsonwebtoken.Claims
-
Sets the JWT
exp (expiration) timestamp.
- setExpiration(Date) - Method in interface io.jsonwebtoken.ClaimsMutator
-
Sets the JWT
exp (expiration) timestamp.
- setExpiration(Date) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT Claims
exp (expiration) value.
- setHeader(Header) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets (and replaces) any existing header with the specified header.
- setHeader(Map<String, Object>) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets (and replaces) any existing header with the specified header.
- setHeaderParam(String, Object) - Method in interface io.jsonwebtoken.JwtBuilder
-
Applies the specified name/value pair to the header.
- setHeaderParams(Map<String, Object>) - Method in interface io.jsonwebtoken.JwtBuilder
-
Applies the specified name/value pairs to the header.
- setId(String) - Method in interface io.jsonwebtoken.Claims
-
Sets the JWT
jti (JWT ID) value.
- setId(String) - Method in interface io.jsonwebtoken.ClaimsMutator
-
Sets the JWT
jti (JWT ID) value.
- setId(String) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT Claims
jti (JWT ID) value.
- setIssuedAt(Date) - Method in interface io.jsonwebtoken.Claims
-
Sets the JWT
iat (issued at) timestamp.
- setIssuedAt(Date) - Method in interface io.jsonwebtoken.ClaimsMutator
-
Sets the JWT
iat (issued at) timestamp.
- setIssuedAt(Date) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT Claims
iat (issued at) value.
- setIssuer(String) - Method in interface io.jsonwebtoken.Claims
-
Sets the JWT
iss (issuer) value.
- setIssuer(String) - Method in interface io.jsonwebtoken.ClaimsMutator
-
Sets the JWT
iss (issuer) value.
- setIssuer(String) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT Claims
iss (issuer) value.
- setKeyId(String) - Method in interface io.jsonwebtoken.JwsHeader
-
Sets the JWT
kid (Key ID) header value.
- setNotBefore(Date) - Method in interface io.jsonwebtoken.Claims
-
Sets the JWT
nbf (not before) timestamp.
- setNotBefore(Date) - Method in interface io.jsonwebtoken.ClaimsMutator
-
Sets the JWT
nbf (not before) timestamp.
- setNotBefore(Date) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT Claims
nbf (not before) value.
- setPayload(String) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT's payload to be a plaintext (non-JSON) string.
- setSigningKey(byte[]) - Method in interface io.jsonwebtoken.JwtParser
-
Sets the signing key used to verify any discovered JWS digital signature.
- setSigningKey(String) - Method in interface io.jsonwebtoken.JwtParser
-
Sets the signing key used to verify any discovered JWS digital signature.
- setSigningKey(Key) - Method in interface io.jsonwebtoken.JwtParser
-
Sets the signing key used to verify any discovered JWS digital signature.
- setSigningKeyResolver(SigningKeyResolver) - Method in interface io.jsonwebtoken.JwtParser
-
Sets the
SigningKeyResolver used to acquire the
signing key that should be used to verify
a JWS's signature.
- setSubject(String) - Method in interface io.jsonwebtoken.Claims
-
Sets the JWT
sub (subject) value.
- setSubject(String) - Method in interface io.jsonwebtoken.ClaimsMutator
-
Sets the JWT
sub (subject) value.
- setSubject(String) - Method in interface io.jsonwebtoken.JwtBuilder
-
Sets the JWT Claims
sub (subject) value.
- setType(String) - Method in interface io.jsonwebtoken.Header
-
Sets the JWT
typ (Type) header value.
- SignatureAlgorithm - Enum in io.jsonwebtoken
-
Type-safe representation of standard JWT signature algorithm names as defined in the
JSON Web Algorithms specification.
- SignatureException - Exception in io.jsonwebtoken.security
-
- SignatureException(String) - Constructor for exception io.jsonwebtoken.security.SignatureException
-
- SignatureException(String, Throwable) - Constructor for exception io.jsonwebtoken.security.SignatureException
-
- SignatureException - Exception in io.jsonwebtoken
-
- SignatureException(String) - Constructor for exception io.jsonwebtoken.SignatureException
-
Deprecated.
- SignatureException(String, Throwable) - Constructor for exception io.jsonwebtoken.SignatureException
-
Deprecated.
- SigningKeyResolver - Interface in io.jsonwebtoken
-
A
SigningKeyResolver can be used by a
JwtParser to find a signing key that
should be used to verify a JWS signature.
- SigningKeyResolverAdapter - Class in io.jsonwebtoken
-
An
Adapter implementation of the
SigningKeyResolver interface that allows subclasses to process only the type of JWS body that
is known/expected for a particular case.
- SigningKeyResolverAdapter() - Constructor for class io.jsonwebtoken.SigningKeyResolverAdapter
-
- signWith(Key) - Method in interface io.jsonwebtoken.JwtBuilder
-
- signWith(SignatureAlgorithm, byte[]) - Method in interface io.jsonwebtoken.JwtBuilder
-
- signWith(SignatureAlgorithm, String) - Method in interface io.jsonwebtoken.JwtBuilder
-
- signWith(SignatureAlgorithm, Key) - Method in interface io.jsonwebtoken.JwtBuilder
-
- signWith(Key, SignatureAlgorithm) - Method in interface io.jsonwebtoken.JwtBuilder
-
Signs the constructed JWT with the specified key using the specified algorithm, producing a JWS.
- size(Collection) - Static method in class io.jsonwebtoken.lang.Collections
-
Returns the collection's size or 0 if the collection is null.
- size(Map) - Static method in class io.jsonwebtoken.lang.Collections
-
Returns the map's size or 0 if the map is null.
- sortStringArray(String[]) - Static method in class io.jsonwebtoken.lang.Strings
-
Turn given source String array into sorted array.
- split(String, String) - Static method in class io.jsonwebtoken.lang.Strings
-
Split a String at the first occurrence of the delimiter.
- splitArrayElementsIntoProperties(String[], String) - Static method in class io.jsonwebtoken.lang.Strings
-
Take an array Strings and split each element based on the given delimiter.
- splitArrayElementsIntoProperties(String[], String, String) - Static method in class io.jsonwebtoken.lang.Strings
-
Take an array Strings and split each element based on the given delimiter.
- startsWithIgnoreCase(String, String) - Static method in class io.jsonwebtoken.lang.Strings
-
Test if the given String starts with the specified prefix,
ignoring upper/lower case.
- state(boolean, String) - Static method in class io.jsonwebtoken.lang.Assert
-
Assert a boolean expression, throwing IllegalStateException
if the test result is false.
- state(boolean) - Static method in class io.jsonwebtoken.lang.Assert
-
- Strings - Class in io.jsonwebtoken.lang
-
- stripFilenameExtension(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Strip the filename extension from the given path,
e.g.
- SUBJECT - Static variable in interface io.jsonwebtoken.Claims
-
JWT Subject claims parameter name: "sub"
- substringMatch(CharSequence, int, CharSequence) - Static method in class io.jsonwebtoken.lang.Strings
-
Test whether the given string matches the given substring
at the given index.
- toArray(Enumeration<E>, A[]) - Static method in class io.jsonwebtoken.lang.Collections
-
Marshal the elements from the given enumeration into an array of the given type.
- toIterator(Enumeration<E>) - Static method in class io.jsonwebtoken.lang.Collections
-
Adapt an enumeration to an iterator.
- tokenizeToStringArray(String, String) - Static method in class io.jsonwebtoken.lang.Strings
-
Tokenize the given String into a String array via a StringTokenizer.
- tokenizeToStringArray(String, String, boolean, boolean) - Static method in class io.jsonwebtoken.lang.Strings
-
Tokenize the given String into a String array via a StringTokenizer.
- toLanguageTag(Locale) - Static method in class io.jsonwebtoken.lang.Strings
-
Determine the RFC 3066 compliant language tag,
as used for the HTTP "Accept-Language" header.
- toObjectArray(Object) - Static method in class io.jsonwebtoken.lang.Objects
-
Convert the given array (which may be a primitive array) to an
object array (if necessary of primitive wrapper objects).
- toStringArray(Collection<String>) - Static method in class io.jsonwebtoken.lang.Strings
-
Copy the given Collection into a String array.
- toStringArray(Enumeration<String>) - Static method in class io.jsonwebtoken.lang.Strings
-
Copy the given Enumeration into a String array.
- trimAllWhitespace(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Trim all whitespace from the given String:
leading, trailing, and inbetween characters.
- trimArrayElements(String[]) - Static method in class io.jsonwebtoken.lang.Strings
-
Trim the elements of the given String array,
calling String.trim() on each of them.
- trimLeadingCharacter(String, char) - Static method in class io.jsonwebtoken.lang.Strings
-
Trim all occurences of the supplied leading character from the given String.
- trimLeadingWhitespace(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Trim leading whitespace from the given String.
- trimTrailingCharacter(String, char) - Static method in class io.jsonwebtoken.lang.Strings
-
Trim all occurences of the supplied trailing character from the given String.
- trimTrailingWhitespace(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Trim trailing whitespace from the given String.
- trimWhitespace(String) - Static method in class io.jsonwebtoken.lang.Strings
-
Trim leading and trailing whitespace from the given String.
- TYPE - Static variable in interface io.jsonwebtoken.Header
-
JWT Type header parameter name: "typ"