Class JwtAudienceValidator
java.lang.Object
com.codename1.backend.security.oauth2.jwt.JwtAudienceValidator
- All Implemented Interfaces:
OAuth2TokenValidator<Jwt>
Refuses a token that is not for this server: one whose aud names none of
the audiences given here. A token with no audience at all is refused.
Without this a token an identity provider issued for some other application is as good here as one issued for this one.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhethertokenpasses, and why not.
-
Constructor Details
-
JwtAudienceValidator
- Parameters:
audiences- what this server is called in a token'saud; any one of them will do
-
-
Method Details
-
validate
Description copied from interface:OAuth2TokenValidatorWhethertokenpasses, and why not.- Specified by:
validatein interfaceOAuth2TokenValidator<Jwt>
-