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

net.officefloor.web.jwt.role.JwtRoleCollector Maven / Gradle / Ivy

package net.officefloor.web.jwt.role;

import java.util.Collection;

/**
 * Collects the roles for the JWT claims.
 * 
 * @author Daniel Sagenschneider
 */
public interface JwtRoleCollector {

	/**
	 * Obtains the JWT claims.
	 * 
	 * @return JWT claims.
	 */
	C getClaims();

	/**
	 * Specifies the roles.
	 * 
	 * @param roles Roles
	 */
	void setRoles(Collection roles);

	/**
	 * Indicates failure in retrieving the roles.
	 * 
	 * @param cause Cause of failure.
	 */
	void setFailure(Throwable cause);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy