Class HealthCheckAuthorization
- java.lang.Object
-
- org.apache.unomi.healthcheck.servlet.HealthCheckAuthorization
-
- All Implemented Interfaces:
org.osgi.service.useradmin.Authorization
public class HealthCheckAuthorization extends Object implements org.osgi.service.useradmin.Authorization
A simple implementation of theAuthorization
interface (usually provided by UserAdmin).
-
-
Constructor Summary
Constructors Constructor Description HealthCheckAuthorization(String name, String[] roles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String[]
getRoles()
boolean
hasRole(String role)
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.osgi.service.useradmin.Authorization
-
hasRole
public boolean hasRole(String role)
- Specified by:
hasRole
in interfaceorg.osgi.service.useradmin.Authorization
-
getRoles
public String[] getRoles()
- Specified by:
getRoles
in interfaceorg.osgi.service.useradmin.Authorization
-
-