Examples of UnknownUserException


Examples of mireka.smtp.UnknownUserException

        }

        @Override
        public void recipient(RecipientContext recipientContext)
                throws RejectExceptionExt {
            throw new UnknownUserException(recipientContext.recipient);
        }
View Full Code Here

Examples of mireka.smtp.UnknownUserException

    @Override
    public FilterReply verifyRecipient(RecipientContext recipientContext)
            throws RejectExceptionExt {
        if (isKnown(recipientContext))
            return FilterReply.NEUTRAL;
        throw new UnknownUserException(recipientContext.recipient);
    }
View Full Code Here

Examples of mireka.smtp.UnknownUserException

            FilterReply filterReply =
                    filterChain.getHead().verifyRecipient(recipientContext);
            if (filterReply == FilterReply.NEUTRAL) {
                if (!recipientContext.isDestinationAssigned()
                        || (recipientContext.getDestination() instanceof UnknownRecipientDestination))
                    throw new UnknownUserException(recipientContext.recipient);
            }
            filterChain.getHead().recipient(recipientContext);
            mailTransaction.recipientContexts.add(recipientContext);
        } catch (RejectExceptionExt e) {
            throw e.toRejectException();
View Full Code Here

Examples of org.apache.jetspeed.services.security.UnknownUserException

        }
        if ( users.size() == 1 )
        {
            return (JetspeedUser)users.get(0);
        }
        throw new UnknownUserException("Unknown user '" + principal.getName() + "'");

    }
View Full Code Here

Examples of org.apache.jetspeed.services.security.UnknownUserException

    public void saveUser(JetspeedUser user)
        throws JetspeedSecurityException
    {
        if(!accountExists(user, true))
        {
            throw new UnknownUserException("Cannot save user '" + user.getUserName() +
                                           "', User doesn't exist");
        }
        Criteria criteria = TurbineUserPeer.buildCriteria(user);
        try
        {
View Full Code Here

Examples of org.apache.jetspeed.services.security.UnknownUserException

        newPassword = JetspeedSecurity.convertPassword(newPassword);

        String encrypted = JetspeedSecurity.encryptPassword(oldPassword);
        if(!accountExists(user))
        {
            throw new UnknownUserException(Localization.getString("UPDATEACCOUNT_NOUSER"));
        }
        if(!user.getPassword().equals(encrypted))
        {
            throw new UserException(Localization.getString("UPDATEACCOUNT_BADOLDPASSWORD"));
        }
View Full Code Here

Examples of org.apache.jetspeed.services.security.UnknownUserException

    public void forcePassword( JetspeedUser user, String password )
        throws JetspeedSecurityException
    {
        if(!accountExists(user))
        {
            throw new UnknownUserException("The account '" +
                user.getUserName() + "' does not exist");
        }
        user.setPassword(JetspeedSecurity.encryptPassword(password));
        // save the changes in the database immediately, to prevent the
        // password being 'reverted' to the old value if the user data
View Full Code Here

Examples of org.apache.jetspeed.services.security.UnknownUserException

                    roles.add(new LDAPRole((LDAPURL) (((Vector)enum1.nextElement()).firstElement())));
                }
            }
            else
            {
                throw new UnknownUserException("No role ");
            }
        }
        catch(Exception e)
        {
            throw new RoleException("Failed to retrieve roles ", e);
View Full Code Here

Examples of org.apache.jetspeed.services.security.UnknownUserException

                    groups.add(new LDAPGroup((LDAPURL) (((Vector)enum1.nextElement()).firstElement())));
                }
            }
            else
            {
                throw new UnknownUserException("No groups");
            }
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to retrieve groups ", e);
View Full Code Here

Examples of org.apache.jetspeed.services.security.UnknownUserException

        {
            throw new UserException("Multiple Users with same username '" + principal.getName() + "'");
        }
        else
        {
            throw new UnknownUserException("Unknown user '" + principal.getName() + "'");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.