Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6540

AbstractAccessTokenValidator property and setter out-of-sync

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.1.2
    • None
    • JAX-RS Security
    • Unknown

    Description

      The setters and the property name do not match for the following:

      Class: org.apache.cxf.rs.security.oauth2.services.AbstractAccessTokenValidator

      Property:

      private List<AccessTokenValidator> tokenHandlers = Collections.emptyList();
      

      Setter(s):

      public void setTokenValidator(AccessTokenValidator validator) {
              setTokenValidators(Collections.singletonList(validator));
          }
          
          public void setTokenValidators(List<AccessTokenValidator> validators) {
              tokenHandlers = validators;
              for (AccessTokenValidator handler : validators) {
                  supportedSchemes.addAll(handler.getSupportedAuthorizationSchemes());
              }
          }
      

      This means you cannot set the property via the XML, although you should still be able to override the class, set the property, and reference the new class in the XML.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            mstberto Berto Murillo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: