Class ApiKey


  • public final class ApiKey
    extends Object
    API key information
    • Method Detail

      • getId

        public String getId()
      • getName

        public String getName()
      • getCreation

        public Instant getCreation()
        Returns:
        a instance of Instant when this API key was created.
      • getExpiration

        public Instant getExpiration()
        Returns:
        a instance of Instant when this API key will expire. In case the API key does not expire then will return null
      • isInvalidated

        public boolean isInvalidated()
        Returns:
        true if this API key has been invalidated else returns false
      • getUsername

        public String getUsername()
        Returns:
        the username for which this API key was created.
      • getRealm

        public String getRealm()
        Returns:
        the realm name of the user for which this API key was created.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object