public interface JwsValidator
JwsValidator
provides a simple API to validate JWS formatted token
as defined in http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-16
and http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-21Modifier and Type | Method and Description |
---|---|
boolean |
validate(java.lang.String jws)
Validates the given JWS token using a system key compatible with the
algorithm specified in the JWS (if available)
|
boolean |
validate(java.lang.String jws,
java.security.Key verifyingKey)
Validates the given JWS token using the given key
|
boolean validate(java.lang.String jws, java.security.Key verifyingKey)
jws
- The JWS token to validatekey
- The key used to verify the JWS.
This must be @link javax.crypto.spec.SecretKeySpec in case of symmetric algorithm andboolean validate(java.lang.String jws)
jws
- The JWS token to validate"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"