io.crnk.rs.internal.JaxrsSecurityProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crnk-rs Show documentation
Show all versions of crnk-rs Show documentation
JSON API framework for Java
package io.crnk.rs.internal;
import io.crnk.core.engine.security.SecurityProvider;
import javax.ws.rs.core.SecurityContext;
public class JaxrsSecurityProvider implements SecurityProvider {
private SecurityContext context;
public JaxrsSecurityProvider(SecurityContext context) {
this.context = context;
}
@Override
public boolean isUserInRole(String role) {
return context.isUserInRole(role);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy