toggle menu
http4k
6.9.0.0
jvm
switch theme
search in API
http4k-security-core
/
org.http4k.security
/
BearerAuthSecurity
Bearer
Auth
Security
class
BearerAuthSecurity
(
val
filter
:
Filter
,
val
name
:
String
=
"bearerAuth"
)
:
Security
Checks the presence of bearer auth credentials. Filter returns 401 if auth fails.
Members
Members & Extensions
Constructors
Bearer
Auth
Security
Link copied to clipboard
constructor
(
token
:
String
,
name
:
String
=
"bearerAuth"
)
constructor
(
token
:
(
String
)
->
Boolean
,
name
:
String
=
"bearerAuth"
)
constructor
(
filter
:
Filter
,
name
:
String
=
"bearerAuth"
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
filter
Link copied to clipboard
open
override
val
filter
:
Filter
name
Link copied to clipboard
val
name
:
String
Functions
and
Link copied to clipboard
fun
Security
.
and
(
that
:
Security
)
:
Security
or
Link copied to clipboard
fun
Security
.
or
(
that
:
Security
)
:
Security