Hi,
Since Java EE 8 targets Java SE 8, maybe it's an idea to see if we can add
some API patterns that are particularly friendly to JDK 8 style
(functional) programming.
E.g. adding some methods to CredentialValidationResult that take lambdas,
you could do something like:
cdi.select(IdentityStore.class).get()
.validate(credential)
.ifValid(e -> callbacks.cpc(e.getCallerName())
.elseThrow();
The above is just a quick example, but it may be worth looking into.
Kind regards,
Arjan Tijms