int result = ACCESS_ABSTAIN;
Iterator iter = config.getConfigAttributes().iterator();
GrantedAuthority[] authorities = extractAuthorities( authentication );
while ( iter.hasNext() ) {
ConfigAttribute attribute = (ConfigAttribute) iter.next();
if ( this.supports( attribute ) ) {
result = ACCESS_DENIED;
// Attempt to find a matching granted authority
for ( int i = 0; i < authorities.length; i++ ) {
if ( attribute.getAttribute().substring( processConfigAttributePrefix.length() ).equals(
authorities[i].getAuthority() ) ) {
return ACCESS_GRANTED;
}
}
}