Class 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 Detail

      • RemotelyAuthenticatedPrincipal

        public RemotelyAuthenticatedPrincipal​(String remoteIdPName,
                                              String inputTranslationProfile)
    • 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.
      • getIdentities

        public Collection<pl.edu.icm.unity.types.basic.IdentityTaV> getIdentities()
      • addIdentities

        public void addIdentities​(Collection<pl.edu.icm.unity.types.basic.IdentityTaV> identities)
      • getAttributes

        public Collection<pl.edu.icm.unity.types.basic.Attribute> getAttributes()
      • addAttributes

        public void addAttributes​(Collection<pl.edu.icm.unity.types.basic.Attribute> attributes)
      • getLocalMappedPrincipal

        public pl.edu.icm.unity.types.basic.EntityParam getLocalMappedPrincipal()
      • setLocalMappedPrincipal

        public void setLocalMappedPrincipal​(pl.edu.icm.unity.types.basic.EntityParam localMappedPrincipal)
      • getRemoteIdPName

        public String getRemoteIdPName()
      • getInputTranslationProfile

        public String getInputTranslationProfile()
      • setMappingResult

        public void setMappingResult​(MappingResult mappingResult)
      • getCreationTime

        public Instant getCreationTime()
      • setCreationTime

        public void setCreationTime​(Instant creationTime)
      • setSessionParticipants

        public void setSessionParticipants​(Set<SessionParticipant> sessionParticipants)