/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @return the User object * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username) throws NamingException { return getUser(context, username, null, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username) throws NamingException { return getUser(context, username, null, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username) throws NamingException { return getUser(context, username, null, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username) throws NamingException { return getUser(context, username, null, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username) throws NamingException { return getUser(context, username, null, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @param credentials User credentials (optional) * @return the User object * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username, String credentials) throws NamingException { return getUser(context, username, credentials, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username) throws NamingException { return getUser(context, username, null, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @return the User object * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username) throws NamingException { return getUser(context, username, null, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @param credentials User credentials (optional) * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username, String credentials) throws NamingException { return getUser(context, username, credentials, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username) throws NamingException { return getUser(context, username, null, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @param credentials User credentials (optional) * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username, String credentials) throws NamingException { return getUser(context, username, credentials, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @param credentials User credentials (optional) * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username, String credentials) throws NamingException { return getUser(context, username, credentials, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @param credentials User credentials (optional) * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username, String credentials) throws NamingException { return getUser(context, username, credentials, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @param credentials User credentials (optional) * @return the User object * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username, String credentials) throws NamingException { return getUser(context, username, credentials, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @param credentials User credentials (optional) * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username, String credentials) throws NamingException { return getUser(context, username, credentials, -1); }
/** * Return a User object containing information about the user * with the specified username, if found in the directory; * otherwise return <code>null</code>. * * @param context The directory context * @param username Username to be looked up * @param credentials User credentials (optional) * * @exception NamingException if a directory server error occurs * * @see #getUser(DirContext, String, String, int) */ protected User getUser(DirContext context, String username, String credentials) throws NamingException { return getUser(context, username, credentials, -1); }
/** * Return the Principal associated with the given user name. */ protected synchronized Principal getPrincipal(DirContext context, String username) throws NamingException { User user = getUser(context, username); return new GenericPrincipal(this, user.username, user.password , getRoles(context, user)); }
/** * Return the Principal associated with the given user name. */ protected synchronized Principal getPrincipal(DirContext context, String username) throws NamingException { User user = getUser(context, username); if (user != null) { return new GenericPrincipal(user.getUserName(), user.getPassword(), getRoles(context, user)); } return null; }
/** * Return the Principal associated with the given user name. */ protected synchronized Principal getPrincipal(DirContext context, String username) throws NamingException { User user = getUser(context, username); if (user != null) { return new GenericPrincipal(user.getUserName(), user.getPassword(), getRoles(context, user)); } return null; }
/** * Return the Principal associated with the given user name. */ protected synchronized Principal getPrincipal(DirContext context, String username) throws NamingException { User user = getUser(context, username); if (user != null) { return new GenericPrincipal(user.getUserName(), user.getPassword(), getRoles(context, user)); } return null; }