Class RemotelyAuthenticatedPrincipal
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.remote.RemotelyAuthenticatedPrincipal
-
public class RemotelyAuthenticatedPrincipal extends Object
Holds information about a user which was obtained and verified by a remote upstream IdP. The information in this class is in Unity format but need not to have counterparts in the local database.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description RemotelyAuthenticatedPrincipal(String remoteIdPName, String inputTranslationProfile)
-
Method Summary
-
-
-
Method Detail
-
getLocalContext
public static RemotelyAuthenticatedPrincipal getLocalContext()
- Returns:
- pseudo remote authn context, which is empty. Used as we don't want to pass null reference in case of local invocations.
-
isLocalContext
public static boolean isLocalContext(RemotelyAuthenticatedPrincipal ctx)
-
getIdentities
public Collection<IdentityTaV> getIdentities()
-
addIdentities
public void addIdentities(Collection<IdentityTaV> identities)
-
getAttributes
public Collection<Attribute> getAttributes()
-
addAttributes
public void addAttributes(Collection<Attribute> attributes)
-
getGroups
public Collection<String> getGroups()
-
addGroups
public void addGroups(Collection<String> groups)
-
getLocalMappedPrincipal
public EntityParam getLocalMappedPrincipal()
-
setLocalMappedPrincipal
public void setLocalMappedPrincipal(EntityParam localMappedPrincipal)
-
getRemoteIdPName
public String getRemoteIdPName()
-
getInputTranslationProfile
public String getInputTranslationProfile()
-
getMappingResult
public MappingResult getMappingResult()
-
setMappingResult
public void setMappingResult(MappingResult mappingResult)
-
setAuthnInput
public void setAuthnInput(RemotelyAuthenticatedInput input)
-
getAuthnInput
public RemotelyAuthenticatedInput getAuthnInput()
-
getSessionParticipants
public Set<SessionParticipant> getSessionParticipants()
-
getCreationTime
public Instant getCreationTime()
-
setCreationTime
public void setCreationTime(Instant creationTime)
-
setSessionParticipants
public void setSessionParticipants(Set<SessionParticipant> sessionParticipants)
-
-