| Package | Description |
|---|---|
| com.artipie.http.auth |
Artipie authentication and authorization mecahnism.
|
| Modifier and Type | Field and Description |
|---|---|
static Authentication.User |
Permissions.ANY_USER
Any user instance.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Authentication.User> |
Identities.user(String line,
Iterable<Map.Entry<String,String>> headers)
Deprecated.
Try to find a user by request head.
|
Optional<Authentication.User> |
BasicIdentities.user(String line,
Iterable<Map.Entry<String,String>> headers)
Deprecated.
|
Optional<Authentication.User> |
Authentication.user(String username,
String password)
Find user by credentials.
|
Optional<Authentication.User> |
Authentication.Wrap.user(String username,
String password) |
Optional<Authentication.User> |
Authentication.Single.user(String name,
String pass) |
Optional<Authentication.User> |
Authentication.Joined.user(String user,
String pass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Permission.allowed(Authentication.User user)
Check if user is authorized to perform an action.
|
boolean |
Permission.ByName.allowed(Authentication.User user) |
boolean |
Permissions.allowed(Authentication.User user,
String action)
Check if user is allowed to perform an action.
|
boolean |
Permissions.Wrap.allowed(Authentication.User user,
String action) |
boolean |
Permissions.Single.allowed(Authentication.User user,
String act) |
| Constructor and Description |
|---|
Single(Authentication.User user,
String password)
Ctor.
|
Copyright © 2012–2020 jcabi.com. All rights reserved.