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(String jws)
Validates the given JWS token using a system key compatible with the
algorithm specified in the JWS (if available)
|
boolean |
validate(String jws,
Key verifyingKey)
Validates the given JWS token using the given key
|
boolean validate(String jws, 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(String jws)
jws
- The JWS token to validate"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"