Class AuthenticatedEntity
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.AuthenticatedEntity
-
public class AuthenticatedEntity extends java.lang.Object
Stores information about authenticated entity during the authentication.This information is stored in
LoginSession
along with additional data after authentication is successful.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedEntity(java.lang.Long entityId, java.lang.String info, java.lang.String outdatedCredentialId)
AuthenticatedEntity(java.lang.Long entityId, java.util.Set<java.lang.String> info, java.lang.String outdatedCredentialId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getAuthenticatedWith()
java.lang.Long
getEntityId()
java.lang.String
getOutdatedCredentialId()
java.lang.String
getRemoteIdP()
void
setAuthenticatedWith(java.util.List<java.lang.String> authenticatedWith)
void
setEntityId(long entityId)
void
setOutdatedCredentialId(java.lang.String outdatedCredentialId)
void
setRemoteIdP(java.lang.String remoteIdP)
-
-
-
Constructor Detail
-
AuthenticatedEntity
public AuthenticatedEntity(java.lang.Long entityId, java.lang.String info, java.lang.String outdatedCredentialId)
-
AuthenticatedEntity
public AuthenticatedEntity(java.lang.Long entityId, java.util.Set<java.lang.String> info, java.lang.String outdatedCredentialId)
-
-
Method Detail
-
getRemoteIdP
public java.lang.String getRemoteIdP()
- Returns:
- null in case entity was authenticated locally, id of the remote IdP otherwise.
-
setRemoteIdP
public void setRemoteIdP(java.lang.String remoteIdP)
-
getEntityId
public java.lang.Long getEntityId()
-
setEntityId
public void setEntityId(long entityId)
-
getAuthenticatedWith
public java.util.List<java.lang.String> getAuthenticatedWith()
-
setAuthenticatedWith
public void setAuthenticatedWith(java.util.List<java.lang.String> authenticatedWith)
-
getOutdatedCredentialId
public java.lang.String getOutdatedCredentialId()
-
setOutdatedCredentialId
public void setOutdatedCredentialId(java.lang.String outdatedCredentialId)
-
-