Class AuthChallenge


  • @Beta
    public class AuthChallenge
    extends java.lang.Object
    Authorization challenge for HTTP status code 401 or 407.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AuthChallenge.Source  
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthChallenge​(java.util.Optional<AuthChallenge.Source> source, java.lang.String origin, java.lang.String scheme, java.lang.String realm)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getOrigin()
      Origin of the challenger.
      java.lang.String getRealm()
      The realm of the challenge.
      java.lang.String getScheme()
      The authentication scheme used, such as basic or digest
      java.util.Optional<AuthChallenge.Source> getSource()
      Source of the authentication challenge.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthChallenge

        public AuthChallenge​(java.util.Optional<AuthChallenge.Source> source,
                             java.lang.String origin,
                             java.lang.String scheme,
                             java.lang.String realm)
    • Method Detail

      • getSource

        public java.util.Optional<AuthChallenge.Source> getSource()
        Source of the authentication challenge.
      • getOrigin

        public java.lang.String getOrigin()
        Origin of the challenger.
      • getScheme

        public java.lang.String getScheme()
        The authentication scheme used, such as basic or digest
      • getRealm

        public java.lang.String getRealm()
        The realm of the challenge. May be empty.