Class ValidatedRpId

java.lang.Object
io.jans.fido2.service.readiness.ValidatedRpId

public final class ValidatedRpId extends Object
A relying party ID that RpIdValidator accepted: a normalized, lower-case, ASCII DNS hostname.

The constructor is package-private on purpose. Code that fetches from an RP ID takes this type instead of a String, so a value that was never validated cannot reach it.

  • Method Details

    • hostname

      public String hostname()
      The hostname, lower-case ASCII (punycode for an internationalized name), without a trailing dot.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object