Uses of Class
io.helidon.security.Subject
-
Packages that use Subject Package Description io.helidon.security Securityio.helidon.security.abac.policy.el Integration with Java EE expression language.io.helidon.security.integration.common Utilities for integrating Helidon security with other components, such as Web Server and Jersey.io.helidon.security.spi Security component's SPI. -
-
Uses of Subject in io.helidon.security
Fields in io.helidon.security declared as Subject Modifier and Type Field Description static Subject
SecurityContext. ANONYMOUS
Anonymous subject.Methods in io.helidon.security that return 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 replaceprincipals()
.static Subject
Subject. create(Principal principal)
Create a new subject for a principal.Methods in io.helidon.security that return types with arguments of type Subject Modifier and Type Method 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.Methods in io.helidon.security with parameters of type Subject Modifier and Type Method Description Subject
Subject. combine(Subject another)
Will add all principals and credentials from another subject to this subject, will not replaceprincipals()
.static Set<String>
Security. getRoles(Subject subject)
Get a set of roles the subject has, based onRole
.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. -
Uses of Subject in io.helidon.security.abac.policy.el
Methods in io.helidon.security.abac.policy.el with parameters of type Subject Modifier and Type Method 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). -
Uses of Subject in io.helidon.security.integration.common
Methods in io.helidon.security.integration.common with parameters of type Subject Modifier and Type Method Description void
AtnTracing. logService(Subject serviceSubject)
Log authenticated service.void
AtnTracing. logUser(Subject userSubject)
Log authenticated user. -
Uses of Subject in io.helidon.security.spi
Methods in io.helidon.security.spi with parameters of type Subject Modifier and Type Method Description default boolean
AuthorizationProvider. isUserInRole(Subject subject, String role)
Return true if current user is in the specified role.
-