Class RemotelyAuthenticatedContext


  • public class RemotelyAuthenticatedContext
    extends java.lang.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

      • RemotelyAuthenticatedContext

        public RemotelyAuthenticatedContext​(java.lang.String remoteIdPName,
                                            java.lang.String inputTranslationProfile)
    • Method Detail

      • getLocalContext

        public static RemotelyAuthenticatedContext 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 java.util.Collection<pl.edu.icm.unity.types.basic.IdentityTaV> getIdentities()
      • addIdentities

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

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

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

        public java.util.Collection<java.lang.String> getGroups()
      • addGroups

        public void addGroups​(java.util.Collection<java.lang.String> groups)
      • getLocalMappedPrincipal

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

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

        public java.lang.String getRemoteIdPName()
      • getInputTranslationProfile

        public java.lang.String getInputTranslationProfile()
      • setMappingResult

        public void setMappingResult​(MappingResult mappingResult)
      • getSessionParticipants

        public java.util.Set<SessionParticipant> getSessionParticipants()
      • getCreationTime

        public java.time.Instant getCreationTime()
      • setCreationTime

        public void setCreationTime​(java.time.Instant creationTime)
      • setSessionParticipants

        public void setSessionParticipants​(java.util.Set<SessionParticipant> sessionParticipants)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object