| Package | Description |
|---|---|
| io.helidon.security |
Security
|
| Modifier and Type | Field and Description |
|---|---|
static Principal |
SecurityContext.ANONYMOUS_PRINCIPAL
Anonymous user principal.
|
| Modifier and Type | Method and Description |
|---|---|
Principal |
Principal.Builder.build() |
static Principal |
Principal.create(java.lang.String id)
Create a principal instance for an id (or name).
|
Principal |
Subject.getPrincipal()
Get the principal this subject is created for (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Principal> |
Subject.getPrincipals()
Get all principals of this subject (including the one returned by
Subject.getPrincipal()). |
default java.util.Optional<Principal> |
SecurityContext.getServicePrincipal()
Returns service principal if service is authenticated.
|
default java.util.Optional<Principal> |
SecurityContext.getUserPrincipal()
Returns user principal if user is authenticated.
|
| Modifier and Type | Method and Description |
|---|---|
Subject.Builder |
Subject.Builder.addPrincipal(Principal principal)
Add a principal to the list of principals of this subject.
|
static Subject |
Subject.create(Principal principal)
Create a new subject for a principal.
|
Subject.Builder |
Subject.Builder.principal(Principal principal)
Main principal of this subject.
|
static AuthenticationResponse |
AuthenticationResponse.success(Principal principal)
Provider has authenticated the request and created a principal for a user.
|
static AuthenticationResponse |
AuthenticationResponse.successService(Principal principal)
Provider has authenticated the request and created a principal for a service (or a client).
|
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.