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 Details

    • RemotelyAuthenticatedPrincipal

      public RemotelyAuthenticatedPrincipal(String remoteIdPName, String inputTranslationProfile)
  • Method Details

    • 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<pl.edu.icm.unity.base.identity.IdentityTaV> getIdentities()
    • addIdentities

      public void addIdentities(Collection<pl.edu.icm.unity.base.identity.IdentityTaV> identities)
    • getAttributes

      public Collection<pl.edu.icm.unity.base.attribute.Attribute> getAttributes()
    • addAttributes

      public void addAttributes(Collection<pl.edu.icm.unity.base.attribute.Attribute> attributes)
    • getGroups

      public Collection<String> getGroups()
    • addGroups

      public void addGroups(Collection<String> groups)
    • getLocalMappedPrincipal

      public pl.edu.icm.unity.base.entity.EntityParam getLocalMappedPrincipal()
    • setLocalMappedPrincipal

      public void setLocalMappedPrincipal(pl.edu.icm.unity.base.entity.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)
    • toString

      public String toString()
      Overrides:
      toString in class Object