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.providers.idcs.mapper Mapper that retrieves roles from IDCS server and maps them to user subject.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.providers.idcs.mapper
Methods in io.helidon.security.providers.idcs.mapper that return Subject Modifier and Type Method Description protected SubjectIdcsRoleMapperProviderBase. 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 SubjectIdcsRoleMapperRxProviderBase. buildSubject(Subject originalSubject, List<? extends Grant> grants)Updates original subject with the list of grants.protected SubjectIdcsMtRoleMapperProvider. 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 SubjectIdcsRoleMapperProvider. enhance(Subject subject, ProviderRequest request, AuthenticationResponse previousResponse)Deprecated, for removal: This API element is subject to removal in a future version.protected abstract SubjectIdcsRoleMapperProviderBase. 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.Methods in io.helidon.security.providers.idcs.mapper that return types with arguments of type Subject Modifier and Type Method Description protected Single<Subject>IdcsMtRoleMapperRxProvider. enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject)Enhance the subject with appropriate roles from IDCS.protected Single<Subject>IdcsRoleMapperRxProvider. enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject)protected abstract Single<Subject>IdcsRoleMapperRxProviderBase. 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 Subject Modifier and Type Method Description protected Optional<List<? extends Grant>>IdcsMtRoleMapperProvider. 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.protected Single<List<? extends Grant>>IdcsMtRoleMapperRxProvider. addAdditionalGrants(String idcsTenantId, String idcsAppName, Subject subject, List<Grant> idcsGrants)Extension point to add additional grants to the subject being created.protected Optional<List<? extends Grant>>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.protected Single<List<? extends Grant>>IdcsRoleMapperRxProvider. 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)Deprecated, for removal: This API element is subject to removal in a future version.Updates original subject with the list of grants.protected SubjectIdcsRoleMapperRxProviderBase. buildSubject(Subject originalSubject, List<? extends Grant> grants)Updates original subject with the list of grants.protected Single<List<? extends Grant>>IdcsMtRoleMapperRxProvider. computeGrants(String idcsTenantId, String idcsAppName, Subject subject)Compute grants for the provided MT information.protected Optional<List<Grant>>IdcsRoleMapperProvider. computeGrants(Subject subject)Deprecated, for removal: This API element is subject to removal in a future version.Compute grants for the provided subject.protected Single<List<? extends Grant>>IdcsRoleMapperRxProvider. computeGrants(Subject subject)Compute grants for the provided subject.protected SubjectIdcsMtRoleMapperProvider. 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 Single<Subject>IdcsMtRoleMapperRxProvider. enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject)Enhance the subject with appropriate roles from IDCS.protected SubjectIdcsRoleMapperProvider. enhance(Subject subject, ProviderRequest request, AuthenticationResponse previousResponse)Deprecated, for removal: This API element is subject to removal in a future version.protected abstract SubjectIdcsRoleMapperProviderBase. 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.protected Single<Subject>IdcsRoleMapperRxProvider. enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject)protected abstract Single<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.protected Optional<List<? extends Grant>>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.protected Single<List<? extends Grant>>IdcsMtRoleMapperRxProvider. getGrantsFromServer(String idcsTenantId, String idcsAppName, Subject subject)Get grants from IDCS server.protected Optional<List<? extends Grant>>IdcsRoleMapperProvider. getGrantsFromServer(Subject subject)Deprecated, for removal: This API element is subject to removal in a future version.Retrieves grants from IDCS server.protected Single<List<? extends Grant>>IdcsRoleMapperRxProvider. 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 Subject Modifier and Type Method Description default booleanAuthorizationProvider. isUserInRole(Subject subject, String role)Return true if current user is in the specified role.
-