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

com.daedafusion.security.admin.IdentityAdmin Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package com.daedafusion.security.admin;

import com.daedafusion.security.authentication.Subject;
import com.daedafusion.security.common.Capability;
import com.daedafusion.security.common.Identity;
import com.daedafusion.security.exceptions.NotFoundException;
import com.daedafusion.security.exceptions.UnauthorizedException;

import java.util.List;

/**
 * Created by mphilpot on 7/19/14.
 */
public interface IdentityAdmin
{
    Identity createIdentity(Subject subject, Identity identity) throws UnauthorizedException;

    Identity updateIdentity(Subject subject, Identity identity) throws UnauthorizedException, NotFoundException;

    void removeIdentity(Subject subject, String user, String domain) throws UnauthorizedException, NotFoundException;

    List listIdentitiesForDomain(Subject subject, String domain) throws UnauthorizedException;

    List listCapabilities(Subject subject) throws UnauthorizedException;

    void addCapability(Subject subject, Capability capability) throws UnauthorizedException;

    void updateCapability(Subject subject, Capability capability) throws UnauthorizedException, NotFoundException;

    void deleteCapability(Subject subject, String capability) throws UnauthorizedException, NotFoundException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy