/** * Provider has authenticated the request and created a user and service Subject. * * @param user Subject of the current user * @param service Subject of the current service * @return AuthenticationResponse with information filled */ public static AuthenticationResponse success(Subject user, Subject service) { return builder().status(SecurityStatus.SUCCESS) .user(user) .service(service) .build(); }
/** * Provider has authenticated the request and created a service Subject. * * @param service Subject of requesting service (or client) * @return AuthenticationResponse with information filled */ public static AuthenticationResponse successService(Subject service) { return builder().status(SecurityStatus.SUCCESS).service(service).build(); }