Annotation Type JwtConfig


  • @Target(FIELD)
    @Retention(RUNTIME)
    public @interface JwtConfig
    Used to annotate a REST Client to configure MicroProfile JWT settings that will be applied to all of its HTTP invocations. In order for this annotation to have any effect, the field must also be annotated with RESTClient.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] claims
      array of claims in the following format: key=value example: {"sub=fred", "upn=fred", "kid=123"} For arrays, separate values with a comma.
      java.lang.String issuer  
      java.lang.String subject  
    • Field Detail

      • DEFAULT_ISSUER

        static final java.lang.String DEFAULT_ISSUER
      • DEFAULT_SUBJECT

        static final java.lang.String DEFAULT_SUBJECT
    • Element Detail

      • issuer

        java.lang.String issuer
        Default:
        "http://testissuer.com"
      • subject

        java.lang.String subject
        Default:
        "testSubject"
      • claims

        java.lang.String[] claims
        array of claims in the following format: key=value example: {"sub=fred", "upn=fred", "kid=123"} For arrays, separate values with a comma. example: {"groups=red,green,admin", "sub=fred"}
        Returns:
        The configured JWT claims
        Default:
        {}