All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.crnk.rs.internal.JaxrsSecurityProvider Maven / Gradle / Ivy

There is a newer version: 2.6.20180430102904
Show newest version
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