Package pl.edu.icm.unity.engine.api.idp
Interface IdPEngine
-
public interface IdPEngine
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IdentityParam
getIdentity(List<IdentityParam> validIdentities, String selectedIdentity)
Finds selected identity among validIdentities and returns it as IdentityParam.TranslationResult
obtainUserInformationWithEarlyImport(IdentityTaV entity, String group, TranslationProfile profile, String requester, Optional<EntityInGroup> requesterEntity, String protocol, String protocolSubType, boolean allowIdentityCreate, eu.unicore.util.configuration.PropertiesHelper importsConfig)
Obtains a complete and translated information about entity, authorized to be published.TranslationResult
obtainUserInformationWithEnrichingImport(EntityParam entity, String group, TranslationProfile profile, String requester, Optional<EntityInGroup> requesterEntity, String protocol, String protocolSubType, boolean allowIdentityCreate, eu.unicore.util.configuration.PropertiesHelper importsConfig)
Obtains a complete and translated information about entity, authorized to be published.
-
-
-
Method Detail
-
obtainUserInformationWithEarlyImport
TranslationResult obtainUserInformationWithEarlyImport(IdentityTaV entity, String group, TranslationProfile profile, String requester, Optional<EntityInGroup> requesterEntity, String protocol, String protocolSubType, boolean allowIdentityCreate, eu.unicore.util.configuration.PropertiesHelper importsConfig) throws 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:
EngineException
-
obtainUserInformationWithEnrichingImport
TranslationResult obtainUserInformationWithEnrichingImport(EntityParam entity, String group, TranslationProfile profile, String requester, Optional<EntityInGroup> requesterEntity, String protocol, String protocolSubType, boolean allowIdentityCreate, eu.unicore.util.configuration.PropertiesHelper importsConfig) throws 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:
EngineException
-
getIdentity
IdentityParam getIdentity(List<IdentityParam> validIdentities, String selectedIdentity) throws 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:
EngineException
eu.unicore.samly2.exceptions.SAMLRequesterException
-
-