Class AudienceValidator

java.lang.Object
com.google.cloud.spring.security.iap.AudienceValidator
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>

public class AudienceValidator extends Object implements org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>, org.springframework.beans.factory.InitializingBean
Jwt token validator for a custom audience claim.
Since:
1.1
  • Constructor Details

    • AudienceValidator

      public AudienceValidator(AudienceProvider audienceProvider)
  • Method Details

    • validate

      public org.springframework.security.oauth2.core.OAuth2TokenValidatorResult validate(org.springframework.security.oauth2.jwt.Jwt t)
      Specified by:
      validate in interface org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getAudience

      public String getAudience()