Class AuthResult

java.lang.Object
net.nathcat.authcat.AuthResult

public class AuthResult extends Object
Contains interpreted data from an authentication request to AuthCat
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    Whether or not the authentication request was successful
    final org.json.simple.JSONObject
    The user data returned by the service, if result = true, otherwise this field is null
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AuthResult(org.json.simple.JSONObject user)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • result

      public final boolean result
      Whether or not the authentication request was successful
    • user

      public final org.json.simple.JSONObject user
      The user data returned by the service, if result = true, otherwise this field is null
  • Constructor Details

    • AuthResult

      public AuthResult(org.json.simple.JSONObject user)
    • AuthResult

      public AuthResult()
  • Method Details