Package pl.edu.icm.unity.engine.api
Interface RealmsManagement
public interface RealmsManagement
Authentication 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
Modifier and TypeMethodDescriptionvoidaddRealm(pl.edu.icm.unity.base.authn.AuthenticationRealm realm) Creates a new realmpl.edu.icm.unity.base.authn.AuthenticationRealmReturns a realm by nameCollection<pl.edu.icm.unity.base.authn.AuthenticationRealm>Returns all defined realmsvoidremoveRealm(String name) Remove realmvoidupdateRealm(pl.edu.icm.unity.base.authn.AuthenticationRealm realm) Update realm
-
Method Details
-
addRealm
void addRealm(pl.edu.icm.unity.base.authn.AuthenticationRealm realm) throws pl.edu.icm.unity.base.exceptions.EngineException Creates a new realm- Parameters:
realm-- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getRealm
pl.edu.icm.unity.base.authn.AuthenticationRealm getRealm(String name) throws pl.edu.icm.unity.base.exceptions.WrongArgumentException, pl.edu.icm.unity.base.exceptions.EngineException Returns a realm by name- Parameters:
name-- Returns:
- Throws:
pl.edu.icm.unity.base.exceptions.WrongArgumentExceptionpl.edu.icm.unity.base.exceptions.EngineException
-
getRealms
Collection<pl.edu.icm.unity.base.authn.AuthenticationRealm> getRealms() throws pl.edu.icm.unity.base.exceptions.EngineExceptionReturns all defined realms- Returns:
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
updateRealm
void updateRealm(pl.edu.icm.unity.base.authn.AuthenticationRealm realm) throws pl.edu.icm.unity.base.exceptions.EngineException Update realm- Parameters:
realm-- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
removeRealm
Remove realm- Parameters:
name-- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-