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 |
---|---|
boolean |
isEntityEnabled(long entity) |
EntityWithCredential |
resolveIdentity(String identity,
String[] identityTypes,
String credentialName)
Resolves an identity for performing authentication.
|
long |
resolveIdentity(String identity,
String[] identityTypes,
String target,
String realm)
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 valueidentityTypes
- what are the types of the identity, in the preference ordercredentialName
- 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 dbpl.edu.icm.unity.exceptions.IllegalGroupValueException
pl.edu.icm.unity.exceptions.IllegalTypeException
pl.edu.icm.unity.exceptions.EngineException
long resolveIdentity(String identity, String[] identityTypes, String target, String realm) throws pl.edu.icm.unity.exceptions.EngineException
identity
- identityTypes
- pl.edu.icm.unity.exceptions.EngineException
boolean isEntityEnabled(long entity)
Copyright © 2019 Unity. All rights reserved.