de
.
choffmeister
.
auth
.
akkahttp
Authenticator
Related Doc:
package akkahttp
class
Authenticator
[
Auth
]
extends
SecurityDirectives
Linear Supertypes
SecurityDirectives
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
Authenticator
SecurityDirectives
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
new
Authenticator
(
realm:
String
,
bearerTokenSecret:
Array
[
Byte
]
,
fromUsernamePassword: (
String
,
String
) ⇒
Future
[
Option
[
Auth
]]
,
fromBearerToken: (
JsonWebToken
) ⇒
Future
[
Option
[
Auth
]]
)
(
implicit
executor:
ExecutionContext
)
Type Members
type
AsyncAuthenticator
[
T
]
= (
Credentials
) ⇒
Future
[
Option
[
T
]]
Definition Classes
SecurityDirectives
type
AsyncAuthenticatorPF
[
T
]
=
PartialFunction
[
Credentials
,
Future
[
T
]]
Definition Classes
SecurityDirectives
type
AuthenticationResult
[
+T
]
=
Either
[
HttpChallenge
,
T
]
Definition Classes
SecurityDirectives
type
Authenticator
[
T
]
= (
Credentials
) ⇒
Option
[
T
]
Definition Classes
SecurityDirectives
type
AuthenticatorPF
[
T
]
=
PartialFunction
[
Credentials
,
T
]
Definition Classes
SecurityDirectives
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
apply
()
:
Directive1
[
Auth
]
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
authenticateBasic
[
T
]
(
realm:
String
,
authenticator:
Authenticator
[
T
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateBasicAsync
[
T
]
(
realm:
String
,
authenticator:
AsyncAuthenticator
[
T
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateBasicPF
[
T
]
(
realm:
String
,
authenticator:
AuthenticatorPF
[
T
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateBasicPFAsync
[
T
]
(
realm:
String
,
authenticator:
AsyncAuthenticatorPF
[
T
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateOAuth2
[
T
]
(
realm:
String
,
authenticator:
Authenticator
[
T
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateOAuth2Async
[
T
]
(
realm:
String
,
authenticator:
AsyncAuthenticator
[
T
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateOAuth2PF
[
T
]
(
realm:
String
,
authenticator:
AuthenticatorPF
[
T
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateOAuth2PFAsync
[
T
]
(
realm:
String
,
authenticator:
AsyncAuthenticatorPF
[
T
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateOrRejectWithChallenge
[
C <:
HttpCredentials
,
T
]
(
authenticator: (
Option
[
C
]) ⇒
Future
[
AuthenticationResult
[
T
]]
)
(
implicit
arg0:
ClassTag
[
C
]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authenticateOrRejectWithChallenge
[
T
]
(
authenticator: (
Option
[
HttpCredentials
]) ⇒
Future
[
AuthenticationResult
[
T
]]
)
:
AuthenticationDirective
[
T
]
Definition Classes
SecurityDirectives
def
authorize
(
check: (
RequestContext
) ⇒
Boolean
)
:
Directive0
Definition Classes
SecurityDirectives
def
authorize
(
check: ⇒
Boolean
)
:
Directive0
Definition Classes
SecurityDirectives
def
basic
(
minDelay:
Option
[
FiniteDuration
] =
None
)
:
AuthenticationDirective
[
Auth
]
def
bearerToken
(
acceptExpired:
Boolean
=
false
)
:
AuthenticationDirective
[
Auth
]
def
challengeFor
(
realm:
String
)
:
HttpChallenge
Definition Classes
SecurityDirectives
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
extractCredentials
:
Directive1
[
Option
[
HttpCredentials
]]
Definition Classes
SecurityDirectives
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
SecurityDirectives
Inherited from
AnyRef
Inherited from
Any
Ungrouped