Class<? extends IRequestableComponent> componentClass) {
SecurityAttribute annotation = componentClass.getAnnotation(SecurityAttribute.class);
if (annotation != null) {
return Arrays.asList(convertAnnotationToEntry(annotation));
}
SecurityAttributes annotation2 = componentClass.getAnnotation(SecurityAttributes.class);
if (annotation2 != null) {
Collection<SecurityAttributeEntry> result = Lists.newArrayList();
for (SecurityAttribute a : annotation2.value()) {
result.add(convertAnnotationToEntry(a));
}
return result;
}
return null;