public interface EntityCredentialManagement
Modifier and Type | Method and Description |
---|---|
boolean |
isCurrentCredentialRequiredForChange(pl.edu.icm.unity.types.basic.EntityParam entity,
String credentialId) |
void |
setEntityCredential(pl.edu.icm.unity.types.basic.EntityParam entity,
String credentialId,
String rawCredential)
As
setEntityCredential(EntityParam, String, String, String)
but works only when invoked with super administrative role, so that the
current credential is not used. |
void |
setEntityCredential(pl.edu.icm.unity.types.basic.EntityParam entity,
String credentialId,
String secrets,
String previousSecrets)
Sets authentication secretes for the entity.
|
void |
setEntityCredentialRequirements(pl.edu.icm.unity.types.basic.EntityParam entity,
String requirementId)
Changes
CredentialRequirements of an entity. |
void |
setEntityCredentialStatus(pl.edu.icm.unity.types.basic.EntityParam entity,
String credentialId,
pl.edu.icm.unity.types.authn.LocalCredentialState desiredCredentialState)
Sets local credential state.
|
void setEntityCredentialRequirements(pl.edu.icm.unity.types.basic.EntityParam entity, String requirementId) throws pl.edu.icm.unity.exceptions.EngineException
CredentialRequirements
of an entity.entity
- to be modifiedrequirementId
- to be setpl.edu.icm.unity.exceptions.EngineException
void setEntityCredential(pl.edu.icm.unity.types.basic.EntityParam entity, String credentialId, String secrets, String previousSecrets) throws pl.edu.icm.unity.exceptions.EngineException
entity
- to be modifiedcredentialId
- credential id to be changed.secrets
- the credential type specific value of the credential.previousSecrets
- used to check if the previous credential is known to the caller.pl.edu.icm.unity.exceptions.EngineException
void setEntityCredentialStatus(pl.edu.icm.unity.types.basic.EntityParam entity, String credentialId, pl.edu.icm.unity.types.authn.LocalCredentialState desiredCredentialState) throws pl.edu.icm.unity.exceptions.EngineException
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 with
setEntityCredential(EntityParam, String, String)
.pl.edu.icm.unity.exceptions.EngineException
void setEntityCredential(pl.edu.icm.unity.types.basic.EntityParam entity, String credentialId, String rawCredential) throws pl.edu.icm.unity.exceptions.EngineException
setEntityCredential(EntityParam, String, String, String)
but works only when invoked with super administrative role, so that the
current credential is not used.entity
- credentialId
- rawCredential
- pl.edu.icm.unity.exceptions.EngineException
boolean isCurrentCredentialRequiredForChange(pl.edu.icm.unity.types.basic.EntityParam entity, String credentialId) throws pl.edu.icm.unity.exceptions.EngineException
entity
- credentialId
- setEntityCredential(EntityParam, String, String)
method can
be used. If false then the setEntityCredential(EntityParam, String, String, String)
version must be used.pl.edu.icm.unity.exceptions.EngineException
Copyright © 2017 Unity. All rights reserved.