Index
A B C D E F G H J N P R S V W
All Classes|All Packages
All Classes|All Packages
All Classes|All Packages
A
- Algorithm - Class in com.bastiaanjansen.jwt.Algorithms
B
- Base64Utils - Class in com.bastiaanjansen.jwt.Utils
-
Class with utility functions for encoding and decoding base64 data
- Base64Utils() - Constructor for class com.bastiaanjansen.jwt.Utils.Base64Utils
- 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
- 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
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
F
- 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
- getAudience() - Method in class com.bastiaanjansen.jwt.Payload
- 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
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
- Header.Registered - Class in com.bastiaanjansen.jwt
- 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
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.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
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
- Payload.Registered - Class in com.bastiaanjansen.jwt
R
- Registered() - Constructor for class com.bastiaanjansen.jwt.Header.Registered
- Registered() - Constructor for class com.bastiaanjansen.jwt.Payload.Registered
- 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
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
- 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
- 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.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.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.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