Package akka.http.javadsl.model.headers
Class Authorization
- java.lang.Object
-
- akka.http.javadsl.model.HttpHeader
-
- akka.http.scaladsl.model.HttpHeader
-
- akka.http.javadsl.model.headers.Authorization
-
- All Implemented Interfaces:
Renderable,ToStringRenderable
- Direct Known Subclasses:
Authorization
public abstract class Authorization extends HttpHeader
Model for the `Authorization` header. Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p7-auth-26#section-4.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
-
Constructor Summary
Constructors Constructor Description Authorization()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Authorizationbasic(java.lang.String username, java.lang.String password)static Authorizationcreate(HttpCredentials credentials)abstract HttpCredentialscredentials()static Authorizationoauth2(java.lang.String token)-
Methods inherited from class akka.http.scaladsl.model.HttpHeader
fastFind, is, isNot, lowercaseName, name, parse, unapply, unsafeToString, value
-
Methods inherited from class akka.http.javadsl.model.HttpHeader
parse, renderInRequests, renderInResponses
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.Renderable
render
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
-
-
-
Method Detail
-
credentials
public abstract HttpCredentials credentials()
-
create
public static Authorization create(HttpCredentials credentials)
-
basic
public static Authorization basic(java.lang.String username, java.lang.String password)
-
oauth2
public static Authorization oauth2(java.lang.String token)
-
-