Class GoogleAuthServiceConfig


  • @EachProperty("gcp.http.client.auth.services")
    public class GoogleAuthServiceConfig
    extends java.lang.Object
    Creates a GoogleAuthServiceConfig for each Service configured under gcp.http.client.auth.services.*.audience. The audience can be configured per service and the correct config bean is selected in GoogleAuthFilter via the service id inside the corresponding request. Requires the user to set the gcp.http.client.auth.services.*.audience property with the desired audience to create the corresponding config bean.
    Since:
    1.0.0
    Author:
    kgreulich
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PREFIX  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAudience()  
      java.lang.String getServiceId()  
      void setAudience​(java.lang.String audience)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GoogleAuthServiceConfig

        public GoogleAuthServiceConfig​(@Parameter
                                       java.lang.String serviceId)
    • Method Detail

      • getServiceId

        public java.lang.String getServiceId()
        Returns:
        the audience service identifier
      • getAudience

        public java.lang.String getAudience()
        Returns:
        the desired audience
      • setAudience

        public void setAudience​(java.lang.String audience)
        Parameters:
        audience - set the desired audience