Class RemotelyAuthenticatedContext
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.remote.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 Summary
Constructors Constructor Description RemotelyAuthenticatedContext(java.lang.String remoteIdPName, java.lang.String inputTranslationProfile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttributes(java.util.Collection<pl.edu.icm.unity.types.basic.Attribute> attributes)
void
addGroups(java.util.Collection<java.lang.String> groups)
void
addIdentities(java.util.Collection<pl.edu.icm.unity.types.basic.IdentityTaV> identities)
java.util.Collection<pl.edu.icm.unity.types.basic.Attribute>
getAttributes()
RemotelyAuthenticatedInput
getAuthnInput()
java.time.Instant
getCreationTime()
java.util.Collection<java.lang.String>
getGroups()
java.util.Collection<pl.edu.icm.unity.types.basic.IdentityTaV>
getIdentities()
java.lang.String
getInputTranslationProfile()
static RemotelyAuthenticatedContext
getLocalContext()
pl.edu.icm.unity.types.basic.EntityParam
getLocalMappedPrincipal()
MappingResult
getMappingResult()
java.lang.String
getRemoteIdPName()
java.util.Set<SessionParticipant>
getSessionParticipants()
static boolean
isLocalContext(RemotelyAuthenticatedContext ctx)
void
setAuthnInput(RemotelyAuthenticatedInput input)
void
setCreationTime(java.time.Instant creationTime)
void
setLocalMappedPrincipal(pl.edu.icm.unity.types.basic.EntityParam localMappedPrincipal)
void
setMappingResult(MappingResult mappingResult)
void
setSessionParticipants(java.util.Set<SessionParticipant> sessionParticipants)
-
-
-
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.
-
isLocalContext
public static boolean isLocalContext(RemotelyAuthenticatedContext ctx)
-
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()
-
getMappingResult
public MappingResult getMappingResult()
-
setMappingResult
public void setMappingResult(MappingResult mappingResult)
-
setAuthnInput
public void setAuthnInput(RemotelyAuthenticatedInput input)
-
getAuthnInput
public RemotelyAuthenticatedInput getAuthnInput()
-
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)
-
-