Package | Description |
---|---|
org.soulwing.jwt.api | |
org.soulwing.jwt.api.exceptions |
Modifier and Type | Method and Description |
---|---|
String |
JWTGenerator.generate(Claims claims)
Generates a signed and optionally encrypted JWT.
|
String |
JWS.sign(String payload)
Creates a signed Compact Serialization of a JWS using the given payload.
|
Claims |
JWTValidator.validate(String encoded)
Validates a JWT.
|
JWS.Result |
JWS.verify(String encoded)
Verifies the signature and extracts the encapsulated payload of a JWS.
|
Modifier and Type | Class and Description |
---|---|
class |
CertificateValidationException
An exception thrown by a
PublicKeyLocator if
the certificate to be used in validating a signature fails validation;
e.g. |
class |
InvalidSignatureException
An exception thrown when a signature validation fails.
|
class |
SignatureKeyNotFoundException
An exception thrown when a signature operation fails because the key
needed was not found.
|
Copyright © 2019. All rights reserved.