Class AuthenticatedEntity

java.lang.Object
pl.edu.icm.unity.engine.api.authn.AuthenticatedEntity

public class AuthenticatedEntity extends 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 Details

    • AuthenticatedEntity

      public AuthenticatedEntity(Long entityId, AuthenticationSubject authnSubject, String outdatedCredentialId)
    • AuthenticatedEntity

      public AuthenticatedEntity(Long entityId, String info, String outdatedCredentialId)
    • AuthenticatedEntity

      public AuthenticatedEntity(Long entityId, Set<String> info, String outdatedCredentialId)
  • Method Details

    • getRemoteIdP

      public String getRemoteIdP()
      Returns:
      null in case entity was authenticated locally, id of the remote IdP otherwise.
    • setRemoteIdP

      public void setRemoteIdP(String remoteIdP)
    • getEntityId

      public Long getEntityId()
    • setEntityId

      public void setEntityId(long entityId)
    • getAuthenticatedWith

      public List<String> getAuthenticatedWith()
    • setAuthenticatedWith

      public void setAuthenticatedWith(List<String> authenticatedWith)
    • getOutdatedCredentialId

      public String getOutdatedCredentialId()
    • setOutdatedCredentialId

      public void setOutdatedCredentialId(String outdatedCredentialId)
    • toString

      public String toString()
      Overrides:
      toString in class Object