statement.setAuthenticationInstant(new DateTime(getAuthenticationResult().getAuthenticationInstant())); if (requestedPrincipalContext != null && requestedPrincipalContext.getMatchingPrincipal() != null && requestedPrincipalContext.getMatchingPrincipal() instanceof AuthenticationMethodPrincipal) { statement.setAuthenticationMethod(requestedPrincipalContext.getMatchingPrincipal().getName()); } else { statement.setAuthenticationMethod(methodLookupStrategy.apply(profileRequestContext).getName());
if (principalContext != null && principalContext.getMatchingPrincipal() != null) { LOG.debug("Found requested principal context context with matching principal {}", principalContext.getMatchingPrincipal().getName()); principalContext.getMatchingPrincipal().getName());
final Principal match = requestedPrincipalCtx.getMatchingPrincipal(); if (match != null) { if (!latest.getSupportedPrincipals(match.getClass()).contains(match)) { if (requestedPrincipalCtx.getMatchingPrincipal() == null) { log.warn("{} Authentication result for flow {} did not satisfy the request", getLogPrefix(), latest.getAuthenticationFlowId());
statement.setAuthnContext(authnContext); if (requestedPrincipalContext != null && requestedPrincipalContext.getMatchingPrincipal() != null) { final Principal matchingPrincipal = requestedPrincipalContext.getMatchingPrincipal(); if (matchingPrincipal instanceof AuthnContextClassRefPrincipal) { authnContext.setAuthnContextClassRef(