/** * Creates a new authentication request. * * @param id that identifies the user * @param c credential to authenticate the user * @param attrs attributes to return */ public AuthenticationRequest(final String id, final Credential c, final String... attrs) { setUser(id); setCredential(c); setReturnAttributes(attrs); }
/** * Creates a new authentication request. * * @param u that identifies the user * @param c credential to authenticate the user * @param attrs attributes to return */ public AuthenticationRequest(final User u, final Credential c, final String... attrs) { setUser(u); setCredential(c); setReturnAttributes(attrs); }
/** * Creates a new authentication request. * * @param u that identifies the user * @param c credential to authenticate the user * @param attrs attributes to return */ public AuthenticationRequest(final User u, final Credential c, final String... attrs) { setUser(u); setCredential(c); setReturnAttributes(attrs); }
/** * Creates a new authentication request. * * @param id that identifies the user * @param c credential to authenticate the user * @param attrs attributes to return */ public AuthenticationRequest(final String id, final Credential c, final String... attrs) { setUser(new User(id)); setCredential(c); setReturnAttributes(attrs); }
authRequest.setReturnAttributes(userRoleAttribute); logger.debug("Retrieved authentication request from factory: {}", authRequest);
/** * Creates a new authentication request. * * @param id that identifies the user * @param c credential to authenticate the user * @param attrs attributes to return */ public AuthenticationRequest(final String id, final Credential c, final String... attrs) { setUser(new User(id)); setCredential(c); setReturnAttributes(attrs); }
authRequest.setReturnAttributes(userRoleAttribute); logger.debug("Retrieved authentication request from factory: {}", authRequest);
authRequest.setReturnAttributes(userRoleAttribute); logger.debug("Retrieved authentication request from factory: {}", authRequest);
request.setReturnAttributes(ReturnAttributes.ALL_USER.value());
request.setReturnAttributes(ReturnAttributes.ALL_USER.value());
request.setReturnAttributes(ReturnAttributes.ALL_USER.value());
/** * Returns an authentication request initialized with the supplied request. * * @param request authentication request to read properties from * * @return authentication request */ public static AuthenticationRequest newAuthenticationRequest(final AuthenticationRequest request) { final AuthenticationRequest r = new AuthenticationRequest(); r.setUser(request.getUser()); r.setCredential(request.getCredential()); r.setReturnAttributes(request.getReturnAttributes()); r.setControls(request.getControls()); return r; }
if (newRequest.getReturnAttributes() == null || ReturnAttributes.NONE.equalsAttributes(newRequest.getReturnAttributes())) { newRequest.setReturnAttributes(returnAttributes); } else { newRequest.setReturnAttributes(LdapUtils.concatArrays(newRequest.getReturnAttributes(), returnAttributes));
if (newRequest.getReturnAttributes() == null || ReturnAttributes.NONE.equalsAttributes(newRequest.getReturnAttributes())) { newRequest.setReturnAttributes(returnAttributes); } else { newRequest.setReturnAttributes(LdapUtils.concatArrays(newRequest.getReturnAttributes(), returnAttributes));
/** * Returns an authentication request initialized with the supplied request. * * @param request authentication request to read properties from * * @return authentication request */ public static AuthenticationRequest newAuthenticationRequest(final AuthenticationRequest request) { final AuthenticationRequest r = new AuthenticationRequest(); r.setUser(request.getUser()); r.setCredential(request.getCredential()); r.setReturnAttributes(request.getReturnAttributes()); r.setControls(request.getControls()); return r; }