Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class DelegatingOAuth2TokenValidator<T>
- Object
- DelegatingOAuth2TokenValidator
ImplementsOAuth2TokenValidator<T>
Puts a token to several validators and reports everything any of them
found: a token that is both expired and from the wrong issuer says both.
Constructors
public DelegatingOAuth2TokenValidator(Collection<OAuth2TokenValidator<T>> validators) |
Methods
public OAuth2TokenValidatorResult validate(T token) | Whether token passes, and why not. |
Inherited methods
Constructor details
DelegatingOAuth2TokenValidator
public DelegatingOAuth2TokenValidator(Collection<OAuth2TokenValidator<T>> validators)Method details
validate
public OAuth2TokenValidatorResult validate(T token)Whether
token passes, and why not.