public interface CredentialHelper
This interface is intended for an internal use, as it performs all operations without any authorization. It should be used by the authentication related components as credential validators or authenticators.
Modifier and Type | Method and Description |
---|---|
void |
setCredential(long entityId,
String credentialName,
String value,
LocalCredentialVerificator handler)
Updates the credential in DB.
|
void |
updateCredential(long entityId,
String credentialName,
String dbEncodedCredentialState)
Updates the credential in DB.
|
void updateCredential(long entityId, String credentialName, String dbEncodedCredentialState) throws pl.edu.icm.unity.exceptions.EngineException
IMPORTANT: the last argument must be given in a database format, i.e. must be already result of processing by an appropriate credential handler. Therefore this method is useful to be called from a verificator itself.
entityId
- credentialName
- dbEncodedCredentialState
- pl.edu.icm.unity.exceptions.EngineException
void setCredential(long entityId, String credentialName, String value, LocalCredentialVerificator handler) throws pl.edu.icm.unity.exceptions.EngineException
IdentitiesManagement#setEntityCredential(pl.edu.icm.unity.types.basic.EntityParam, String, String)
but requires no authorization.entityId
- credentialName
- value
- pl.edu.icm.unity.exceptions.EngineException
Copyright © 2017 Unity. All rights reserved.