October 2017
Intermediate to advanced
442 pages
12h 33m
English
The concept of identity stores was also added with the Security API. Identity stores provide the authentication and authorization information of users in lightweight, portable ways. They offer a unified way to access this information.
The IdentityStore type validates a caller's credentials and accesses its information. Similarly to HTTP authentication mechanisms, the application containers are required to provide identity stores for LDAP and database access.
The following shows an example using the container-provided security functionality:
import javax.security.enterprise.authentication.mechanism.http.*;import javax.security.enterprise.identitystore.DatabaseIdentityStoreDefinition;import javax.security.enterprise.identitystore.IdentityStore; ...
Read now
Unlock full access