code: protected AuthenticationHandlerExecutionResult createHandlerResult(final @NonNull Credential credential,
                                                                         final @NonNull Principal principal,
                                                                         final @NonNull List<MessageDescriptor> warnings) {
          return new DefaultAuthenticationHandlerExecutionResult(this, new BasicCredentialMetaData(credential), principal, warnings);
      }
docs: Helper method to construct a handler result
  on successful authentication events.
  
  @param credential the credential on which the authentication was successfully performed.
  Note that this credential instance may be different from what was originally provided
  as transformation of the username may have occurred, if one is in fact defined.
  @param principal  the resolved principal
  @param warnings   the warnings
  @return the constructed handler result