Uses of Class
io.helidon.security.Subject
Packages that use Subject
Package
Description
Security
Integration with Java EE expression language.
Utilities for integrating Helidon security with other components, such as Web Server
and Jersey.
Mapper that retrieves roles from IDCS server and maps them to user subject.
Security component's SPI.
-
Uses of Subject in io.helidon.security
Fields in io.helidon.security declared as SubjectModifier and TypeFieldDescriptionstatic final SubjectSecurityContext.ANONYMOUSAnonymous subject.Methods in io.helidon.security that return SubjectModifier and TypeMethodDescriptionSubject.Builder.build()Will add all principals and credentials from another subject to this subject, will not replaceprincipals().static SubjectCreate a new subject for a principal.Methods in io.helidon.security that return types with arguments of type SubjectModifier and TypeMethodDescriptionAuthenticationResponse.service()Service (or client) subject.ProviderRequest.service()Current service subject, if already authenticated.SecurityContext.service()Returns subject of current context (caller) service or client identity.ProviderRequest.subject()Current user subject, if already authenticated.AuthenticationResponse.user()User subject.SecurityContext.user()Returns subject of current context (caller) user.Methods in io.helidon.security with parameters of type SubjectModifier and TypeMethodDescriptionWill add all principals and credentials from another subject to this subject, will not replaceprincipals().Get a set of roles the subject has, based onRole.voidExecutes provided code under provided subject.Set the service subject as created by this provider.static AuthenticationResponseProvider has authenticated the request and created a user Subject.static AuthenticationResponseProvider 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.Update this builder with all security information from the subject provided.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 SubjectModifier and TypeMethodDescriptionstatic booleanCheck if subject has the specified role.static booleanCheck if subject has the specified roles (must have all of them).static booleanCheck if subject has the specified scope.static booleanCheck 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 SubjectModifier and TypeMethodDescriptionvoidAtnTracing.logService(Subject serviceSubject) Log authenticated service.voidLog authenticated user. -
Uses of Subject in io.helidon.security.providers.idcs.mapper
Methods in io.helidon.security.providers.idcs.mapper that return SubjectModifier and TypeMethodDescriptionprotected SubjectIdcsRoleMapperProviderBase.buildSubject(Subject originalSubject, List<? extends Grant> grants) Updates original subject with the list of grants.protected SubjectIdcsMtRoleMapperProvider.enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) Enhance the subject with appropriate roles from IDCS.protected SubjectIdcsRoleMapperProvider.enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) protected abstract SubjectIdcsRoleMapperProviderBase.enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) Enhance subject with IDCS roles, reactive.Methods in io.helidon.security.providers.idcs.mapper with parameters of type SubjectModifier and TypeMethodDescriptionIdcsMtRoleMapperProvider.addAdditionalGrants(String idcsTenantId, String idcsAppName, Subject subject, List<Grant> idcsGrants) Extension point to add additional grants to the subject being created.IdcsRoleMapperProvider.addAdditionalGrants(Subject subject, List<Grant> idcsGrants) Extension point to add additional grants that are not retrieved from IDCS.protected SubjectIdcsRoleMapperProviderBase.buildSubject(Subject originalSubject, List<? extends Grant> grants) Updates original subject with the list of grants.IdcsMtRoleMapperProvider.computeGrants(String idcsTenantId, String idcsAppName, Subject subject) Compute grants for the provided MT information.IdcsRoleMapperProvider.computeGrants(Subject subject) Compute grants for the provided subject.protected SubjectIdcsMtRoleMapperProvider.enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) Enhance the subject with appropriate roles from IDCS.protected SubjectIdcsRoleMapperProvider.enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) protected abstract SubjectIdcsRoleMapperProviderBase.enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) Enhance subject with IDCS roles, reactive.protected Optional<IdcsMtContext> IdcsMtRoleMapperProvider.extractIdcsMtContext(Subject subject, ProviderRequest request) Extract IDCS multitenancy context form the the request.IdcsMtRoleMapperProvider.getGrantsFromServer(String idcsTenantId, String idcsAppName, Subject subject) Get grants from IDCS server.IdcsRoleMapperProvider.getGrantsFromServer(Subject subject) Retrieves grants from IDCS server. -
Uses of Subject in io.helidon.security.spi
Methods in io.helidon.security.spi with parameters of type SubjectModifier and TypeMethodDescriptiondefault booleanAuthorizationProvider.isUserInRole(Subject subject, String role) Return true if current user is in the specified role.