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