T
- The resulting parser's parse
output typeB
- builder type used for method chainingpublic interface ParserBuilder<T,B extends ParserBuilder<T,B>> extends Builder<Parser<T>>
ParserBuilder
configures and creates new Parser
instances.Modifier and Type | Method and Description |
---|---|
B |
json(Deserializer<Map<String,?>> deserializer)
Uses the specified
Deserializer to convert JSON Strings (UTF-8 byte streams) into Java Map objects. |
B |
provider(Provider provider)
Sets the JCA Provider to use during cryptographic operations, or
null if the
JCA subsystem preferred provider should be used. |
B provider(Provider provider)
null
if the
JCA subsystem preferred provider should be used.provider
- the JCA Provider to use during cryptographic key factory operations, or null
if the JCA subsystem preferred provider should be used.B json(Deserializer<Map<String,?>> deserializer)
Deserializer
to convert JSON Strings (UTF-8 byte streams) into Java Map objects. The
resulting Maps are then used to construct respective JWT objects (JWTs, JWKs, etc).
If this method is not called, JJWT will use whatever Deserializer it can find at runtime, checking for the
presence of well-known implementations such as Jackson, Gson, and org.json. If one of these is not found
in the runtime classpath, an exception will be thrown when the Builder.build()
method is called.
deserializer
- the Deserializer to use when converting JSON Strings (UTF-8 byte streams) into Map objects.Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.