| 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 | Description |
|---|---|---|
static Subject |
SecurityContext.ANONYMOUS |
Anonymous subject.
|
| Modifier and Type | Method | 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
getPrincipals(). |
static Subject |
Subject.create(Principal principal) |
Create a new subject for a principal.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<Subject> |
AuthenticationResponse.getService() |
|
java.util.Optional<Subject> |
ProviderRequest.getService() |
|
java.util.Optional<Subject> |
SecurityContext.getService() |
Returns subject of current context (caller) service or client identity.
|
java.util.Optional<Subject> |
ProviderRequest.getSubject() |
|
java.util.Optional<Subject> |
AuthenticationResponse.getUser() |
|
java.util.Optional<Subject> |
SecurityContext.getUser() |
Returns subject of current context (caller) user.
|
| Modifier and Type | Method | Description |
|---|---|---|
Subject |
Subject.combine(Subject another) |
Will add all principals and credentials from another subject to this subject, will not replace
getPrincipals(). |
static java.util.Set<java.lang.String> |
Security.getRoles(Subject subject) |
Get a set of roles the subject has, based on
Role. |
void |
SecurityContext.runAs(Subject subject,
java.lang.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 | Description |
|---|---|---|
static boolean |
BuiltInMethods.inRole(Subject subject,
java.lang.String role) |
Check if subject has the specified role.
|
static boolean |
BuiltInMethods.inRoles(Subject subject,
java.lang.String... roles) |
Check if subject has the specified roles (must have all of them).
|
static boolean |
BuiltInMethods.inScope(Subject subject,
java.lang.String scope) |
Check if subject has the specified scope.
|
static boolean |
BuiltInMethods.inScopes(Subject subject,
java.lang.String... scopes) |
Check if subject has the specified scopes (must have all of them).
|
| Modifier and Type | Method | Description |
|---|---|---|
default boolean |
AuthorizationProvider.isUserInRole(Subject subject,
java.lang.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.