Package pl.edu.icm.unity.engine.api
Interface CredentialRequirementManagement
-
public interface CredentialRequirementManagement
API forCredentialRequirements
management.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CREDENTIAL_REQUIREMENT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCredentialRequirement(CredentialRequirements updated)
Defines a new credential requirements instanceCollection<CredentialRequirements>
getCredentialRequirements()
CredentialRequirements
getCredentialRequirements(String name)
void
removeCredentialRequirement(String toRemove, String replacementId)
Removes the given credential set definition.void
updateCredentialRequirement(CredentialRequirements updated)
Updated a definitions of credential set.
-
-
-
Field Detail
-
DEFAULT_CREDENTIAL_REQUIREMENT
static final String DEFAULT_CREDENTIAL_REQUIREMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
addCredentialRequirement
void addCredentialRequirement(CredentialRequirements updated) throws EngineException
Defines a new credential requirements instance- Parameters:
name
-credentials
-description
-- Throws:
EngineException
-
updateCredentialRequirement
void updateCredentialRequirement(CredentialRequirements updated) throws EngineException
Updated a definitions of credential set.- Parameters:
updated
- updated data. The existing one is matched by id.- Throws:
EngineException
-
removeCredentialRequirement
void removeCredentialRequirement(String toRemove, String replacementId) throws EngineException
Removes the given credential set definition. The second argument is used to get another existing set, to replace the removed one where it is used. It can be null only if the removed set is not used otherwise an exception is thrown. If the replacementId is not null, then the replacementAuthnState governs the desired overall authentication state of the entities which have their credential requirements modified. For details see#updateCredentialRequirement(CredentialRequirements, LocalAuthenticationState)
- the semantics is the same here.- Parameters:
toRemove
- credential requirement to removereplacementId
- credential requirement to be applied to entities that used the removed requirement. Can be null, but then the operation will be successful only if there was no entity with the requirement.- Throws:
EngineException
-
getCredentialRequirements
Collection<CredentialRequirements> getCredentialRequirements() throws EngineException
- Returns:
- collection of existing credential requirements
- Throws:
EngineException
-
getCredentialRequirements
CredentialRequirements getCredentialRequirements(String name) throws EngineException
- Returns:
- existing credential requirement
- Throws:
EngineException
-
-