| Package | Description |
|---|---|
| io.helidon.security |
Security
|
| io.helidon.security.abac.policy.el |
Integration with Java EE expression language.
|
| io.helidon.security.spi |
Security component's SPI.
|
| Modifier and Type | Field and Description |
|---|---|
static Subject |
SecurityContext.ANONYMOUS
Anonymous subject.
|
| Modifier and Type | Method and Description |
|---|---|
Subject |
Subject.Builder.build() |
Subject |
Subject.combine(Subject another)
Will add all principals and credentials from another subject to this subject, will not replace
principals(). |
static Subject |
Subject.create(Principal principal)
Create a new subject for a principal.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Subject> |
AuthenticationResponse.service()
Service (or client) subject.
|
Optional<Subject> |
ProviderRequest.service()
Current service subject, if already authenticated.
|
Optional<Subject> |
SecurityContext.service()
Returns subject of current context (caller) service or client identity.
|
Optional<Subject> |
ProviderRequest.subject()
Current user subject, if already authenticated.
|
Optional<Subject> |
AuthenticationResponse.user()
User subject.
|
Optional<Subject> |
SecurityContext.user()
Returns subject of current context (caller) user.
|
| Modifier and Type | Method and Description |
|---|---|
Subject |
Subject.combine(Subject another)
Will add all principals and credentials from another subject to this subject, will not replace
principals(). |
static Set<String> |
Security.getRoles(Subject subject)
Get a set of roles the subject has, based on
Role. |
void |
SecurityContext.runAs(Subject subject,
Runnable runnable)
Executes provided code under provided subject.
|
AuthenticationResponse.Builder |
AuthenticationResponse.Builder.service(Subject subject)
Set the service subject as created by this provider.
|
static AuthenticationResponse |
AuthenticationResponse.success(Subject subject)
Provider has authenticated the request and created a user Subject.
|
static AuthenticationResponse |
AuthenticationResponse.success(Subject user,
Subject service)
Provider has authenticated the request and created a user and service Subject.
|
static AuthenticationResponse |
AuthenticationResponse.successService(Subject service)
Provider has authenticated the request and created a service Subject.
|
Subject.Builder |
Subject.Builder.update(Subject subject)
Update this builder with all security information from the
subject provided.
|
AuthenticationResponse.Builder |
AuthenticationResponse.Builder.user(Subject subject)
Set the user subject as created by this provider.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
BuiltInMethods.inRole(Subject subject,
String role)
Check if subject has the specified role.
|
static boolean |
BuiltInMethods.inRoles(Subject subject,
String... roles)
Check if subject has the specified roles (must have all of them).
|
static boolean |
BuiltInMethods.inScope(Subject subject,
String scope)
Check if subject has the specified scope.
|
static boolean |
BuiltInMethods.inScopes(Subject subject,
String... scopes)
Check if subject has the specified scopes (must have all of them).
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
AuthorizationProvider.isUserInRole(Subject subject,
String role)
Return true if current user is in the specified role.
|
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.