public static final class JsonWebSignature.Parser extends Object
Implementation is not thread-safe.
Constructor and Description |
---|
Parser(JsonFactory jsonFactory) |
Modifier and Type | Method and Description |
---|---|
Class<? extends JsonWebSignature.Header> |
getHeaderClass()
Returns the header class to use for parsing.
|
JsonFactory |
getJsonFactory()
Returns the JSON factory.
|
Class<? extends JsonWebToken.Payload> |
getPayloadClass()
Returns the payload class to use for parsing.
|
JsonWebSignature |
parse(String tokenString)
Parses a JWS token into a parsed
JsonWebSignature . |
JsonWebSignature.Parser |
setHeaderClass(Class<? extends JsonWebSignature.Header> headerClass)
Sets the header class to use for parsing.
|
JsonWebSignature.Parser |
setPayloadClass(Class<? extends JsonWebToken.Payload> payloadClass)
Sets the payload class to use for parsing.
|
public Parser(JsonFactory jsonFactory)
jsonFactory
- JSON factorypublic Class<? extends JsonWebSignature.Header> getHeaderClass()
public JsonWebSignature.Parser setHeaderClass(Class<? extends JsonWebSignature.Header> headerClass)
public Class<? extends JsonWebToken.Payload> getPayloadClass()
public JsonWebSignature.Parser setPayloadClass(Class<? extends JsonWebToken.Payload> payloadClass)
public JsonFactory getJsonFactory()
public JsonWebSignature parse(String tokenString) throws IOException
JsonWebSignature
.tokenString
- JWS token stringJsonWebSignature
IOException
Copyright © 2011–2023 Google. All rights reserved.