public interface IdentityResolver
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|
Resolves an identity for performing authentication.
Simple version that only resolves, but doesn't establish any local credential.
EntityWithCredential resolveIdentity(String identity, String identityTypes, String credentialName) throws pl.edu.icm.unity.exceptions.IllegalIdentityValueException, pl.edu.icm.unity.exceptions.IllegalTypeException, pl.edu.icm.unity.exceptions.IllegalGroupValueException, pl.edu.icm.unity.exceptions.EngineException
identity- raw identity value
identityTypes- what are the types of the identity, in the preference order
credentialName- what credential should be provided in the returned object. Can be null - then no credential is set in the returned object.
pl.edu.icm.unity.exceptions.IllegalIdentityValueException- if the given identity is not present in the db
long resolveIdentity(String identity, String identityTypes, String target, String realm) throws pl.edu.icm.unity.exceptions.EngineException
boolean isEntityEnabled(long entity)
Copyright © 2018 Unity. All rights reserved.