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 SubjectSecurityContext. ANONYMOUSAnonymous subject.Methods in io.helidon.security that return Subject Modifier and Type Method Description SubjectSubject.Builder. build()SubjectSubject. combine(Subject another)Will add all principals and credentials from another subject to this subject, will not replaceprincipals().static SubjectSubject. 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 SubjectSubject. 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.voidSecurityContext. runAs(Subject subject, Runnable runnable)Executes provided code under provided subject.AuthenticationResponse.BuilderAuthenticationResponse.Builder. service(Subject subject)Set the service subject as created by this provider.static AuthenticationResponseAuthenticationResponse. success(Subject subject)Provider has authenticated the request and created a user Subject.static AuthenticationResponseAuthenticationResponse. success(Subject user, Subject service)Provider has authenticated the request and created a user and service Subject.static AuthenticationResponseAuthenticationResponse. successService(Subject service)Provider has authenticated the request and created a service Subject.Subject.BuilderSubject.Builder. update(Subject subject)Update this builder with all security information from the subject provided.AuthenticationResponse.BuilderAuthenticationResponse.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 booleanBuiltInMethods. inRole(Subject subject, String role)Check if subject has the specified role.static booleanBuiltInMethods. inRoles(Subject subject, String... roles)Check if subject has the specified roles (must have all of them).static booleanBuiltInMethods. inScope(Subject subject, String scope)Check if subject has the specified scope.static booleanBuiltInMethods. 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 voidAtnTracing. logService(Subject serviceSubject)Log authenticated service.voidAtnTracing. 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 booleanAuthorizationProvider. isUserInRole(Subject subject, String role)Return true if current user is in the specified role.
-