A B C D E F G H I J N P R S T V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addClaim(String, Object) - Method in class com.bastiaanjansen.jwt.Claims
- Algorithm - Class in com.bastiaanjansen.jwt.algorithms
- ALGORITHM - com.bastiaanjansen.jwt.Claims.Registered
- AUDIENCE - com.bastiaanjansen.jwt.Claims.Registered
B
- base64Encoded() - Method in class com.bastiaanjansen.jwt.Claims
- Base64Utils - Class in com.bastiaanjansen.jwt.utils
-
Class with utility functions for encoding and decoding base64 data
- build() - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- build() - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Create a new JWT instance
- Builder() - Constructor for class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- Builder(Algorithm) - Constructor for class com.bastiaanjansen.jwt.JWT.Builder
-
Creates a new JWT Builder instance
C
- ClaimConverter<T> - Interface in com.bastiaanjansen.jwt
- claims - Variable in class com.bastiaanjansen.jwt.Claims
- Claims - Class in com.bastiaanjansen.jwt
- Claims() - Constructor for class com.bastiaanjansen.jwt.Claims
- Claims.Registered - Enum in com.bastiaanjansen.jwt
- ClaimValidator - Interface in com.bastiaanjansen.jwt
- com.bastiaanjansen.jwt - package com.bastiaanjansen.jwt
- com.bastiaanjansen.jwt.algorithms - package com.bastiaanjansen.jwt.algorithms
- com.bastiaanjansen.jwt.exceptions - package com.bastiaanjansen.jwt.exceptions
- com.bastiaanjansen.jwt.utils - package com.bastiaanjansen.jwt.utils
- containsClaim(String) - Method in class com.bastiaanjansen.jwt.Claims
- CONTENT_TYPE - com.bastiaanjansen.jwt.Claims.Registered
- convert(Object) - Method in interface com.bastiaanjansen.jwt.ClaimConverter
D
- decodeBase64URL(String) - Static method in class com.bastiaanjansen.jwt.utils.Base64Utils
-
Decode base64URL string
- DefaultJWTValidator - Class in com.bastiaanjansen.jwt
-
Default implementation of a JWT verifier.
- DefaultJWTValidator() - Constructor for class com.bastiaanjansen.jwt.DefaultJWTValidator
- DefaultJWTValidator(DefaultJWTValidator.Builder) - Constructor for class com.bastiaanjansen.jwt.DefaultJWTValidator
- DefaultJWTValidator.Builder - Class in com.bastiaanjansen.jwt
- description - Variable in class com.bastiaanjansen.jwt.algorithms.Algorithm
E
- encodeBase64URL(byte[]) - Static method in class com.bastiaanjansen.jwt.utils.Base64Utils
-
Encode byte array to base64URL string
- encodeBase64URL(String) - Static method in class com.bastiaanjansen.jwt.utils.Base64Utils
-
Encode string to base64URL string
- EXPIRATION_TIME - com.bastiaanjansen.jwt.Claims.Registered
F
- fromBase64EncodedJSON(String) - Static method in class com.bastiaanjansen.jwt.Header
- fromBase64EncodedJSON(String) - Static method in class com.bastiaanjansen.jwt.Payload
- fromRawJWT(Algorithm, String) - Static method in class com.bastiaanjansen.jwt.JWT
-
Create a new JWT instance based on a raw JWT
G
- getAlgorithm() - Method in class com.bastiaanjansen.jwt.Header
- getAlgorithm() - Method in class com.bastiaanjansen.jwt.JWT
- getAsMap() - Method in class com.bastiaanjansen.jwt.Claims
- getAudience() - Method in class com.bastiaanjansen.jwt.Payload
- getClaim(String, ClaimConverter<T>) - Method in class com.bastiaanjansen.jwt.Claims
- getClaim(String, Class<T>) - Method in class com.bastiaanjansen.jwt.Claims
-
Get a claim by name and cast it to a specific type
- getContentType() - Method in class com.bastiaanjansen.jwt.Header
- getDescription() - Method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- getExpirationTime() - Method in class com.bastiaanjansen.jwt.Payload
- getHeader() - Method in class com.bastiaanjansen.jwt.JWT
- getHeaderValidators() - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator
- getID() - Method in class com.bastiaanjansen.jwt.Payload
- getIssuedAt() - Method in class com.bastiaanjansen.jwt.Payload
- getIssuer() - Method in class com.bastiaanjansen.jwt.Payload
- getName() - Method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- getNotBefore() - Method in class com.bastiaanjansen.jwt.Payload
- getPayload() - Method in class com.bastiaanjansen.jwt.JWT
- getPayloadValidators() - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator
- getSignature() - Method in class com.bastiaanjansen.jwt.JWT
- getSubject() - Method in class com.bastiaanjansen.jwt.Payload
- getType() - Method in class com.bastiaanjansen.jwt.Header
- getValue() - Method in enum com.bastiaanjansen.jwt.Claims.Registered
H
- Header - Class in com.bastiaanjansen.jwt
- Header() - Constructor for class com.bastiaanjansen.jwt.Header
- Header(Map<String, Object>) - Constructor for class com.bastiaanjansen.jwt.Header
- HMAC256(String) - Static method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- HMAC384(String) - Static method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- HMAC512(String) - Static method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- HMACAlgorithm - Class in com.bastiaanjansen.jwt.algorithms
I
- ISSUED_AT - com.bastiaanjansen.jwt.Claims.Registered
- ISSUER - com.bastiaanjansen.jwt.Claims.Registered
J
- JWT - Class in com.bastiaanjansen.jwt
-
This object represents a JSON Web Token
- JWT(Algorithm, Header, Payload) - Constructor for class com.bastiaanjansen.jwt.JWT
- JWT_ID - com.bastiaanjansen.jwt.Claims.Registered
- JWT.Builder - Class in com.bastiaanjansen.jwt
- JWTCreationException - Exception in com.bastiaanjansen.jwt.exceptions
- JWTCreationException() - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTCreationException
- JWTCreationException(String) - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTCreationException
- JWTDecodeException - Exception in com.bastiaanjansen.jwt.exceptions
- JWTDecodeException() - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTDecodeException
- JWTDecodeException(String) - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTDecodeException
- JWTException - Exception in com.bastiaanjansen.jwt.exceptions
- JWTException() - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTException
- JWTException(String) - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTException
- JWTExpiredException - Exception in com.bastiaanjansen.jwt.exceptions
- JWTExpiredException() - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTExpiredException
- JWTExpiredException(String) - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTExpiredException
- JWTSignException - Exception in com.bastiaanjansen.jwt.exceptions
- JWTSignException() - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTSignException
- JWTSignException(String) - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTSignException
- JWTValidationException - Exception in com.bastiaanjansen.jwt.exceptions
- JWTValidationException() - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTValidationException
- JWTValidationException(String) - Constructor for exception com.bastiaanjansen.jwt.exceptions.JWTValidationException
- JWTValidator - Interface in com.bastiaanjansen.jwt
-
Interface which should be implemented by JWT validators.
N
- name - Variable in class com.bastiaanjansen.jwt.algorithms.Algorithm
- NOT_BEFORE - com.bastiaanjansen.jwt.Claims.Registered
P
- Payload - Class in com.bastiaanjansen.jwt
- Payload() - Constructor for class com.bastiaanjansen.jwt.Payload
- Payload(Map<String, Object>) - Constructor for class com.bastiaanjansen.jwt.Payload
R
- RSA256(KeyPair) - Static method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- RSA384(KeyPair) - Static method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- RSA512(KeyPair) - Static method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- RSAAlgorithm - Class in com.bastiaanjansen.jwt.algorithms
S
- setAlgorithm(String) - Method in class com.bastiaanjansen.jwt.Header
- setAudience(String...) - Method in class com.bastiaanjansen.jwt.Payload
- setContentType(String) - Method in class com.bastiaanjansen.jwt.Header
- setExpirationTime(long) - Method in class com.bastiaanjansen.jwt.Payload
- setExpirationTime(Date) - Method in class com.bastiaanjansen.jwt.Payload
- setID(String) - Method in class com.bastiaanjansen.jwt.Payload
- setIssuedAt(long) - Method in class com.bastiaanjansen.jwt.Payload
- setIssuedAt(Date) - Method in class com.bastiaanjansen.jwt.Payload
- setIssuer(String) - Method in class com.bastiaanjansen.jwt.Payload
- setNotBefore(long) - Method in class com.bastiaanjansen.jwt.Payload
- setNotBefore(Date) - Method in class com.bastiaanjansen.jwt.Payload
- setSubject(String) - Method in class com.bastiaanjansen.jwt.Payload
- setType(String) - Method in class com.bastiaanjansen.jwt.Header
- sign() - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Creates a new JWT
- sign() - Method in class com.bastiaanjansen.jwt.JWT
-
Create a new JWT
- sign(byte[]) - Method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- sign(byte[]) - Method in class com.bastiaanjansen.jwt.algorithms.HMACAlgorithm
- sign(byte[]) - Method in class com.bastiaanjansen.jwt.algorithms.RSAAlgorithm
- sign(String) - Method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- sign(String) - Method in class com.bastiaanjansen.jwt.algorithms.HMACAlgorithm
- sign(String) - Method in class com.bastiaanjansen.jwt.algorithms.RSAAlgorithm
- sign(Map<String, ?>) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Creates a new JWT with additional payload
- SUBJECT - com.bastiaanjansen.jwt.Claims.Registered
T
- TYPE - com.bastiaanjansen.jwt.Claims.Registered
V
- validate() - Method in class com.bastiaanjansen.jwt.JWT
-
Checks whether the JWT is valid or not with the default JWT validator
- validate(JWT) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator
- validate(JWT) - Method in interface com.bastiaanjansen.jwt.JWTValidator
- validate(JWTValidator) - Method in class com.bastiaanjansen.jwt.JWT
-
Checks whether the JWT is valid or not with a custom validator
- validate(Object) - Method in interface com.bastiaanjansen.jwt.ClaimValidator
- valueOf(String) - Static method in enum com.bastiaanjansen.jwt.Claims.Registered
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.bastiaanjansen.jwt.Claims.Registered
-
Returns an array containing the constants of this enum type, in the order they are declared.
- verify(byte[], byte[]) - Method in class com.bastiaanjansen.jwt.algorithms.Algorithm
- verify(byte[], byte[]) - Method in class com.bastiaanjansen.jwt.algorithms.HMACAlgorithm
- verify(byte[], byte[]) - Method in class com.bastiaanjansen.jwt.algorithms.RSAAlgorithm
W
- withAlgorithm(String) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withAllOfAudience(String...) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withAudience(String...) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add an audience (aud) claim to payload
- withClaim(String, ClaimValidator) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withClaim(String, Object) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withClaim(String, Object) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add a claim to the payload
- withClaim(Map<String, ?>) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add multiple claims to payload
- withContentType(String) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withContentType(String) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add a content type (cty) claim to header
- withExpirationTime(long) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withExpirationTime(long) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add an expiration time (exp) to payload
- withExpirationTime(Date) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withExpirationTime(Date) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add an expiration time (exp) to payload
- withHeader(Header) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Set the header.
- withHeader(String, ClaimValidator) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withHeader(String, Object) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withHeader(String, String) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add a header claim
- withID(String) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withID(String) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add a key ID (kid) to the header claims
- withIssuedAt(long) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withIssuedAt(long) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add an issued at (iat) claim to payload
- withIssuedAt(Date) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withIssuedAt(Date) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add an issued at (iat) claim to payload
- withIssuer(String) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withIssuer(String) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add an issuer (iss) claim to payload
- withNotBefore(long) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withNotBefore(long) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add a not-before (nbf) claim to payload
- withNotBefore(Date) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withNotBefore(Date) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add a not-before (nbf) claim to payload
- withOneOfAudience(String...) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withPayload(Payload) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Set the payload.
- withSubject(String) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withSubject(String) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add a subject (sub) claim to payload
- withType(String) - Method in class com.bastiaanjansen.jwt.DefaultJWTValidator.Builder
- withType(String) - Method in class com.bastiaanjansen.jwt.JWT.Builder
-
Add type (typ) claim to header
All Classes All Packages