Uses of Class
io.helidon.security.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
Modifier and TypeFieldDescriptionstatic final Subject
SecurityContext.ANONYMOUS
Anonymous subject.Modifier and TypeMethodDescriptionSubject.Builder.build()
Will add all principals and credentials from another subject to this subject, will not replaceprincipals()
.static Subject
Create a new subject for a principal.Modifier 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.Modifier 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
.void
Executes provided code under provided subject.Set the service subject as created by this provider.static AuthenticationResponse
Provider has authenticated the request and created a user Subject.static AuthenticationResponse
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.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
Modifier and TypeMethodDescriptionstatic boolean
Check if subject has the specified role.static boolean
Check if subject has the specified roles (must have all of them).static boolean
Check if subject has the specified scope.static boolean
Check if subject has the specified scopes (must have all of them). -
Uses of Subject in io.helidon.security.integration.common
Modifier and TypeMethodDescriptionvoid
AtnTracing.logService
(Subject serviceSubject) Log authenticated service.void
Log authenticated user. -
Uses of Subject in io.helidon.security.providers.idcs.mapper
Modifier and TypeMethodDescriptionprotected Subject
IdcsRoleMapperProviderBase.buildSubject
(Subject originalSubject, List<? extends Grant> grants) Deprecated, for removal: This API element is subject to removal in a future version.Updates original subject with the list of grants.protected Subject
IdcsRoleMapperRxProviderBase.buildSubject
(Subject originalSubject, List<? extends Grant> grants) Updates original subject with the list of grants.protected Subject
IdcsMtRoleMapperProvider.enhance
(Subject subject, ProviderRequest request, AuthenticationResponse previousResponse) Deprecated, for removal: This API element is subject to removal in a future version.Enhance the subject with appropriate roles from IDCS.protected Subject
IdcsRoleMapperProvider.enhance
(Subject subject, ProviderRequest request, AuthenticationResponse previousResponse) Deprecated, for removal: This API element is subject to removal in a future version.protected abstract Subject
IdcsRoleMapperProviderBase.enhance
(Subject subject, ProviderRequest request, AuthenticationResponse previousResponse) Deprecated, for removal: This API element is subject to removal in a future version.Enhance subject with IDCS roles.Modifier and TypeMethodDescriptionIdcsMtRoleMapperRxProvider.enhance
(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) Enhance the subject with appropriate roles from IDCS.IdcsRoleMapperRxProvider.enhance
(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) IdcsRoleMapperRxProviderBase.enhance
(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) Enhance subject with IDCS roles, reactive.Modifier and TypeMethodDescriptionIdcsMtRoleMapperProvider.addAdditionalGrants
(String idcsTenantId, String idcsAppName, Subject subject) Deprecated, for removal: This API element is subject to removal in a future version.Extension point to add additional grants to the subject being created.IdcsMtRoleMapperRxProvider.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) Deprecated, for removal: This API element is subject to removal in a future version.Extension point to add additional grants that are not retrieved from IDCS.IdcsRoleMapperRxProvider.addAdditionalGrants
(Subject subject, List<Grant> idcsGrants) Extension point to add additional grants that are not retrieved from IDCS.protected Subject
IdcsRoleMapperProviderBase.buildSubject
(Subject originalSubject, List<? extends Grant> grants) Deprecated, for removal: This API element is subject to removal in a future version.Updates original subject with the list of grants.protected Subject
IdcsRoleMapperRxProviderBase.buildSubject
(Subject originalSubject, List<? extends Grant> grants) Updates original subject with the list of grants.IdcsMtRoleMapperRxProvider.computeGrants
(String idcsTenantId, String idcsAppName, Subject subject) Compute grants for the provided MT information.IdcsRoleMapperProvider.computeGrants
(Subject subject) Deprecated, for removal: This API element is subject to removal in a future version.Compute grants for the provided subject.IdcsRoleMapperRxProvider.computeGrants
(Subject subject) Compute grants for the provided subject.protected Subject
IdcsMtRoleMapperProvider.enhance
(Subject subject, ProviderRequest request, AuthenticationResponse previousResponse) Deprecated, for removal: This API element is subject to removal in a future version.Enhance the subject with appropriate roles from IDCS.IdcsMtRoleMapperRxProvider.enhance
(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) Enhance the subject with appropriate roles from IDCS.protected Subject
IdcsRoleMapperProvider.enhance
(Subject subject, ProviderRequest request, AuthenticationResponse previousResponse) Deprecated, for removal: This API element is subject to removal in a future version.protected abstract Subject
IdcsRoleMapperProviderBase.enhance
(Subject subject, ProviderRequest request, AuthenticationResponse previousResponse) Deprecated, for removal: This API element is subject to removal in a future version.Enhance subject with IDCS roles.IdcsRoleMapperRxProvider.enhance
(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) IdcsRoleMapperRxProviderBase.enhance
(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) Enhance subject with IDCS roles, reactive.protected Optional<IdcsMtContext>
IdcsMtRoleMapperProvider.extractIdcsMtContext
(Subject subject, ProviderRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Extract IDCS multitenancy context form the the request.protected Optional<IdcsMtContext>
IdcsMtRoleMapperRxProvider.extractIdcsMtContext
(Subject subject, ProviderRequest request) Extract IDCS multitenancy context form the the request.IdcsMtRoleMapperProvider.getGrantsFromServer
(String idcsTenantId, String idcsAppName, Subject subject) Deprecated, for removal: This API element is subject to removal in a future version.Get grants from IDCS server.IdcsMtRoleMapperRxProvider.getGrantsFromServer
(String idcsTenantId, String idcsAppName, Subject subject) Get grants from IDCS server.IdcsRoleMapperProvider.getGrantsFromServer
(Subject subject) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves grants from IDCS server.IdcsRoleMapperRxProvider.getGrantsFromServer
(Subject subject) Retrieves grants from IDCS server. -
Uses of Subject in io.helidon.security.spi
Modifier and TypeMethodDescriptiondefault boolean
AuthorizationProvider.isUserInRole
(Subject subject, String role) Return true if current user is in the specified role.