Class AuthId


  • public class AuthId
    extends Object
    An authentication identification. Can be either the API token of a user or a pair of its login and password or a session key identifying its yet opened session. Both are ready encoded to be passed in the corresponding HTTP header, just call getValue()
    Author:
    mmoquillon
    • Field Detail

      • NONE

        public static final AuthId NONE
    • Method Detail

      • apiToken

        public static AuthId apiToken​(String token)
      • sessionKey

        public static AuthId sessionKey​(String sessionKey)
      • getValue

        public String getValue()
      • isDefined

        public boolean isDefined()
      • isAuthentication

        public boolean isAuthentication()
      • isInSession

        public boolean isInSession()