Package pl.edu.icm.unity.engine.api
Interface EntityCredentialManagement
-
public interface EntityCredentialManagementAPI for management of entities' credentials.- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetUserMFAOptIn(EntityParam entity)voidsetEntityCredential(EntityParam entity, String credentialId, String secrets)Sets authentication secretes for the entity.voidsetEntityCredentialRequirements(EntityParam entity, String requirementId)ChangesCredentialRequirementsof an entity.voidsetEntityCredentialStatus(EntityParam entity, String credentialId, LocalCredentialState desiredCredentialState)Sets local credential state.voidsetUserMFAOptIn(EntityParam entity, boolean value)
-
-
-
Method Detail
-
setEntityCredentialRequirements
void setEntityCredentialRequirements(EntityParam entity, String requirementId) throws EngineException
ChangesCredentialRequirementsof an entity.- Parameters:
entity- to be modifiedrequirementId- to be set- Throws:
EngineException
-
setEntityCredential
void setEntityCredential(EntityParam entity, String credentialId, String secrets) throws EngineException
Sets authentication secretes for the entity. After the change, the credential will be in correct state.- Parameters:
entity- to be modifiedcredentialId- credential id to be changed.secrets- the credential type specific value of the credential.- Throws:
EngineException
-
setEntityCredentialStatus
void setEntityCredentialStatus(EntityParam entity, String credentialId, LocalCredentialState desiredCredentialState) throws EngineException
Sets local credential state.- Parameters:
entity- to be modifiedcredentialId- credential id to be changed.desiredCredentialState- desired credential state. If 'notSet' then the current credential is removed. The status can be set to 'outdated' only if the credential supports invalidation and currently there is a (correct or outdated) credential set. The 'correct' value is not allowed, and will cause an exception. Credential can be put into correct state withsetEntityCredential(EntityParam, String, String).- Throws:
EngineException
-
setUserMFAOptIn
void setUserMFAOptIn(EntityParam entity, boolean value) throws EngineException
- Throws:
EngineException
-
getUserMFAOptIn
boolean getUserMFAOptIn(EntityParam entity) throws EngineException
- Throws:
EngineException
-
-