Package pl.edu.icm.unity.engine.api
Interface RealmsManagement
-
public interface RealmsManagementAuthentication realm is a group of endpoints which share the same authentication context: in the first place login session. Also other artifacts can have realm scope, for instance the transient identities.- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRealm(pl.edu.icm.unity.types.authn.AuthenticationRealm realm)Creates a new realmpl.edu.icm.unity.types.authn.AuthenticationRealmgetRealm(java.lang.String name)Returns a realm by namejava.util.Collection<pl.edu.icm.unity.types.authn.AuthenticationRealm>getRealms()Returns all defined realmsvoidremoveRealm(java.lang.String name)Remove realmvoidupdateRealm(pl.edu.icm.unity.types.authn.AuthenticationRealm realm)Update realm
-
-
-
Method Detail
-
addRealm
void addRealm(pl.edu.icm.unity.types.authn.AuthenticationRealm realm) throws pl.edu.icm.unity.exceptions.EngineExceptionCreates a new realm- Parameters:
realm-- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getRealm
pl.edu.icm.unity.types.authn.AuthenticationRealm getRealm(java.lang.String name) throws pl.edu.icm.unity.exceptions.WrongArgumentException, pl.edu.icm.unity.exceptions.EngineExceptionReturns a realm by name- Parameters:
name-- Returns:
- Throws:
pl.edu.icm.unity.exceptions.WrongArgumentExceptionpl.edu.icm.unity.exceptions.EngineException
-
getRealms
java.util.Collection<pl.edu.icm.unity.types.authn.AuthenticationRealm> getRealms() throws pl.edu.icm.unity.exceptions.EngineExceptionReturns all defined realms- Returns:
- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
updateRealm
void updateRealm(pl.edu.icm.unity.types.authn.AuthenticationRealm realm) throws pl.edu.icm.unity.exceptions.EngineExceptionUpdate realm- Parameters:
realm-- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
removeRealm
void removeRealm(java.lang.String name) throws pl.edu.icm.unity.exceptions.EngineExceptionRemove realm- Parameters:
name-- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
-