Package pl.edu.icm.unity.engine.api.idp
Interface IdPEngine
public interface IdPEngine
-
Method Summary
Modifier and TypeMethodDescriptionpl.edu.icm.unity.base.identity.IdentityParam
getIdentity
(List<pl.edu.icm.unity.base.identity.IdentityParam> validIdentities, String selectedIdentity) Finds selected identity among validIdentities and returns it as IdentityParam.obtainUserInformationWithEarlyImport
(pl.edu.icm.unity.base.identity.IdentityTaV entity, String group, pl.edu.icm.unity.base.translation.TranslationProfile profile, String requester, Optional<EntityInGroup> requesterEntity, String protocol, String protocolSubType, boolean allowIdentityCreate, UserImportConfigs userImportConfigs) Obtains a complete and translated information about entity, authorized to be published.obtainUserInformationWithEnrichingImport
(pl.edu.icm.unity.base.entity.EntityParam entity, String group, pl.edu.icm.unity.base.translation.TranslationProfile profile, String requester, Optional<EntityInGroup> requesterEntity, String protocol, String protocolSubType, boolean allowIdentityCreate, UserImportConfigs userImportConfigs) Obtains a complete and translated information about entity, authorized to be published.
-
Method Details
-
obtainUserInformationWithEarlyImport
TranslationResult obtainUserInformationWithEarlyImport(pl.edu.icm.unity.base.identity.IdentityTaV entity, String group, pl.edu.icm.unity.base.translation.TranslationProfile profile, String requester, Optional<EntityInGroup> requesterEntity, String protocol, String protocolSubType, boolean allowIdentityCreate, UserImportConfigs userImportConfigs) throws pl.edu.icm.unity.base.exceptions.EngineException Obtains a complete and translated information about entity, authorized to be published. This variant assumes that the entity should be tried to be imported first and only then resolved. Therefore this variant is useful for 3rd party queries where queried user may at the time of query be missing.- Parameters:
entity
- entity for which the query is performedgroup
- the group from which attributes shall be resolvedprofile
- output translation profile to be consulted. Can be null -> then default profile is used.requester
- identity of requesterrequesterEntity
- if present then attributes of this entity in the given group will be added to the output profile contextprotocol
- identifier of access protocolprotocolSubType
- sub identifier of protocol (e.g. binding)allowIdentityCreate
- whether a dynamic id can be established- Returns:
- obtained data
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
obtainUserInformationWithEnrichingImport
TranslationResult obtainUserInformationWithEnrichingImport(pl.edu.icm.unity.base.entity.EntityParam entity, String group, pl.edu.icm.unity.base.translation.TranslationProfile profile, String requester, Optional<EntityInGroup> requesterEntity, String protocol, String protocolSubType, boolean allowIdentityCreate, UserImportConfigs userImportConfigs) throws pl.edu.icm.unity.base.exceptions.EngineException Obtains a complete and translated information about entity, authorized to be published. This variant assumes that the entity should be imported after being resolved, i.e. import is enriching already existing entity. Therefore this is useful for obtaining information about authenticated user.- Parameters:
entity
-group
-profile
-requester
-protocol
-protocolSubType
-allowIdentityCreate
-userImports
-- Returns:
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getIdentity
pl.edu.icm.unity.base.identity.IdentityParam getIdentity(List<pl.edu.icm.unity.base.identity.IdentityParam> validIdentities, String selectedIdentity) throws pl.edu.icm.unity.base.exceptions.EngineException, eu.unicore.samly2.exceptions.SAMLRequesterException Finds selected identity among validIdentities and returns it as IdentityParam. Argument must be given using comparable identity value.- Parameters:
validIdentities
-selectedIdentity
-- Returns:
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
eu.unicore.samly2.exceptions.SAMLRequesterException
-