AuthorizationResult isAuthorized( AuthorizationDataSource source )
throws AuthorizationException;
+
+ /**
+ * @return true if this implementation is a final one and not a wrapper
+ * @since 2.1
+ */
+ boolean isFinalImplementation();
+
+ /**
+ * @return a key to be able to customize label in UI
+ * @since 2.1
+ */
+ String getDescriptionKey();
}
{
return null;
}
+
+ public boolean isFinalImplementation()
+ {
+ return true;
+ }
+
+ public String getDescriptionKey()
+ {
+ return "archiva.redback.authorizer.ldap";
+ }
}
return new AuthorizationResult( true, source.getPermission(), null );
}
+ public boolean isFinalImplementation()
+ {
+ return true;
+ }
+
+ public String getDescriptionKey()
+ {
+ return "archiva.redback.authorizer.open";
+ }
+
}
{
this.evaluator = evaluator;
}
+
+ public boolean isFinalImplementation()
+ {
+ return true;
+ }
+
+ public String getDescriptionKey()
+ {
+ return "archiva.redback.authorizer.rbac";
+ }
}
return new AuthorizationResult( false, principal, null );
}
}
+
+ public boolean isFinalImplementation()
+ {
+ return true;
+ }
+
+ public String getDescriptionKey()
+ {
+ return "archiva.redback.authorizer.memory";
+ }
}