cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6540) AbstractAccessTokenValidator property and setter out-of-sync
Date Fri, 14 Aug 2015 11:11:46 GMT

    [ https://issues.apache.org/jira/browse/CXF-6540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14696881#comment-14696881
] 

Sergey Beryozkin commented on CXF-6540:
---------------------------------------

Do you mean the fact 'tokenHandlers' does not match 'tokenValidators' causes issues ? Hmm,
this is strange. I think I did configure it OK when testing a hawk scheme validator... 

> AbstractAccessTokenValidator property and setter out-of-sync
> ------------------------------------------------------------
>
>                 Key: CXF-6540
>                 URL: https://issues.apache.org/jira/browse/CXF-6540
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS Security
>    Affects Versions: 3.1.2
>            Reporter: Berto Murillo
>              Labels: oauth2, security
>
> The setters and the property name do not match for the following:
> Class: org.apache.cxf.rs.security.oauth2.services.AbstractAccessTokenValidator
> Property:
> {code}
> private List<AccessTokenValidator> tokenHandlers = Collections.emptyList();
> {code}
> Setter(s):
> {code}
> 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());
>         }
>     }
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message