public interface CredentialManagement
Modifier and Type | Method and Description |
---|---|
void |
addCredentialDefinition(pl.edu.icm.unity.types.authn.CredentialDefinition credentialDefinition)
Defines a new credential definition, so it can be assigned to entities via credential requirements
and to local authenticators.
|
pl.edu.icm.unity.types.authn.CredentialDefinition |
getCredentialDefinition(String name) |
Collection<pl.edu.icm.unity.types.authn.CredentialDefinition> |
getCredentialDefinitions() |
Collection<pl.edu.icm.unity.types.authn.CredentialType> |
getCredentialTypes() |
void |
removeCredentialDefinition(String toRemove)
Removes the given credential definition.
|
void |
updateCredentialDefinition(pl.edu.icm.unity.types.authn.CredentialDefinition updated,
pl.edu.icm.unity.types.authn.LocalCredentialState desiredCredState)
Updates a definition of a credential.
|
Collection<pl.edu.icm.unity.types.authn.CredentialType> getCredentialTypes() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
void addCredentialDefinition(pl.edu.icm.unity.types.authn.CredentialDefinition credentialDefinition) throws pl.edu.icm.unity.exceptions.EngineException
credentialDefinition
- pl.edu.icm.unity.exceptions.EngineException
void updateCredentialDefinition(pl.edu.icm.unity.types.authn.CredentialDefinition updated, pl.edu.icm.unity.types.authn.LocalCredentialState desiredCredState) throws pl.edu.icm.unity.exceptions.EngineException
updated
- updated data. The existing one is matched by name.desiredCredState
- The desired credential state to be applied to entities which
have this credential currently set. If value is 'correct',
then the operation will be successful only if all entities which have this credential
are fulfilling the new rules. If the value is 'outdated' then all identities which have
this credential set will have the state changed to 'valid' if their credentials fulfill
the rules of the new requirements or to 'outdated' otherwise.
The 'notSet' value means that the current credentials should have their values cleared.pl.edu.icm.unity.exceptions.EngineException
void removeCredentialDefinition(String toRemove) throws pl.edu.icm.unity.exceptions.EngineException
toRemove
- pl.edu.icm.unity.exceptions.EngineException
Collection<pl.edu.icm.unity.types.authn.CredentialDefinition> getCredentialDefinitions() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.types.authn.CredentialDefinition getCredentialDefinition(String name) throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
Copyright © 2019 Unity. All rights reserved.