Record Class UserAuthnDetails

java.lang.Object
java.lang.Record
pl.edu.icm.unity.engine.api.idp.UserAuthnDetails

public record UserAuthnDetails(RemoteAuthnMetadata firstFactorRemoteIdPAuthnMetadata, Set<pl.edu.icm.unity.base.authn.AuthenticationMethod> authenticationMethods, Set<String> authenticatedIdentities, List<String> authenticators, String remoteIdp) extends Record
  • Constructor Details

    • UserAuthnDetails

      public UserAuthnDetails(RemoteAuthnMetadata firstFactorRemoteIdPAuthnMetadata, Set<pl.edu.icm.unity.base.authn.AuthenticationMethod> authenticationMethods, Set<String> authenticatedIdentities, List<String> authenticators, String remoteIdp)
      Creates an instance of a UserAuthnDetails record class.
      Parameters:
      firstFactorRemoteIdPAuthnMetadata - the value for the firstFactorRemoteIdPAuthnMetadata record component
      authenticationMethods - the value for the authenticationMethods record component
      authenticatedIdentities - the value for the authenticatedIdentities record component
      authenticators - the value for the authenticators record component
      remoteIdp - the value for the remoteIdp record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • firstFactorRemoteIdPAuthnMetadata

      public RemoteAuthnMetadata firstFactorRemoteIdPAuthnMetadata()
      Returns the value of the firstFactorRemoteIdPAuthnMetadata record component.
      Returns:
      the value of the firstFactorRemoteIdPAuthnMetadata record component
    • authenticationMethods

      public Set<pl.edu.icm.unity.base.authn.AuthenticationMethod> authenticationMethods()
      Returns the value of the authenticationMethods record component.
      Returns:
      the value of the authenticationMethods record component
    • authenticatedIdentities

      public Set<String> authenticatedIdentities()
      Returns the value of the authenticatedIdentities record component.
      Returns:
      the value of the authenticatedIdentities record component
    • authenticators

      public List<String> authenticators()
      Returns the value of the authenticators record component.
      Returns:
      the value of the authenticators record component
    • remoteIdp

      public String remoteIdp()
      Returns the value of the remoteIdp record component.
      Returns:
      the value of the remoteIdp record component