public interface JWTProvider
Modifier and Type | Method and Description |
---|---|
Assertions.Builder |
assertions()
Gets a builder that will produce an
Assertions instance. |
Claims.Builder |
claims()
Gets a builder that will produce a
Claims instance. |
JWE.Builder |
encryptionOperator()
Gets a builder that will produce a
JWE operator instance. |
JWTGenerator.Builder |
generator()
Gets a builder that will produce a
JWTGenerator instance. |
JoseHeader |
header(String encoded)
Parses the JOSE header from a JWT in compacted encoding form.
|
Claims |
parse(String json)
Parses a JSON string to create a
Claims instance. |
JWS.Builder |
signatureOperator()
Gets a builder that will produce a
JWS operator instance. |
JWTValidator.Builder |
validator()
Gets a builder that will produce a
JWTValidator instance. |
Claims.Builder claims()
Claims
instance.Claims parse(String json) throws JWTParseException
Claims
instance.json
- JSON in a string serializationJWTParseException
- if the JSON cannot be parsed successfullyJoseHeader header(String encoded) throws JWTParseException
encoded
- JWT in compact encodingJWTParseException
- if the header cannot be parsed successfullyAssertions.Builder assertions()
Assertions
instance.JWS.Builder signatureOperator()
JWS
operator instance.JWE.Builder encryptionOperator()
JWE
operator instance.JWTGenerator.Builder generator()
JWTGenerator
instance.JWTValidator.Builder validator()
JWTValidator
instance.Copyright © 2019. All rights reserved.