Package org.apache.axis.security

Examples of org.apache.axis.security.AuthenticatedUser


                    null, null );

            String passwd = (String) msgContext.getProperty( MessageContext.PASSWORD );
            category.debug( "Pass: " + passwd );

            AuthenticatedUser authUser = provider.authenticate(msgContext);

            // if a password is defined, then it must match
            if ( authUser == null)
                throw new AxisFault( "Server.Unauthenticated",
                    "User '" + userID + "' not authenticated",
View Full Code Here


        boolean allowByDefault = false;
        String optVal = (String)getOption("allowByDefault");
        if ((optVal != null) && (optVal.equalsIgnoreCase("true")))
            allowByDefault = true;

        AuthenticatedUser user = (AuthenticatedUser)msgContext.
                                         getProperty(MessageContext.AUTHUSER);

        if (user == null)
            throw new AxisFault("Server.NoUser",
                    "Need to specify a user for authorization!", null, null);

        String userID = user.getName();
        Handler serviceHandler = msgContext.getServiceHandler();

        if (serviceHandler == null)
            throw new AxisFault("No target service to authorize for!");
View Full Code Here

            String passwd = msgContext.getPassword();
            if (log.isDebugEnabled()) {
                log.debug( JavaUtils.getMessage("password00", passwd) );
            }

            AuthenticatedUser authUser = provider.authenticate(msgContext);

            // if a password is defined, then it must match
            if ( authUser == null)
                throw new AxisFault( "Server.Unauthenticated",
                    JavaUtils.getMessage("cantAuth01", userID),
View Full Code Here

        }

        boolean allowByDefault =
            JavaUtils.isTrueExplicitly(getOption("allowByDefault"));

        AuthenticatedUser user = (AuthenticatedUser)msgContext.
                                         getProperty(MessageContext.AUTHUSER);

        if (user == null)
            throw new AxisFault("Server.NoUser",
                    JavaUtils.getMessage("needUser00"), null, null);

        String userID = user.getName();
        Handler serviceHandler = msgContext.getService();

        if (serviceHandler == null)
            throw new AxisFault(JavaUtils.getMessage("needService00"));
View Full Code Here

            String passwd = msgContext.getPassword();
            if (logger.isDebugEnabled()) {
                logger.debug("password : " + passwd );
            }

            AuthenticatedUser authUser = provider.authenticate(msgContext);

            // if a password is defined, then it must match
            if ( authUser == null) {
                logger.debug("authuser is null");
                return false;
View Full Code Here

            String passwd = msgContext.getPassword();
            if (logger.isDebugEnabled()) {
                logger.debug("password : " + passwd );
            }

            AuthenticatedUser authUser = provider.authenticate(msgContext);

            // if a password is defined, then it must match
            if ( authUser == null) {
                logger.debug("authuser is null");
                return false;
View Full Code Here

            String passwd = msgContext.getPassword();
            if (log.isDebugEnabled()) {
                log.debug( Messages.getMessage("password00", passwd) );
            }

            AuthenticatedUser authUser = provider.authenticate(msgContext);

            // if a password is defined, then it must match
            if ( authUser == null)
                throw new AxisFault( "Server.Unauthenticated",
                    Messages.getMessage("cantAuth01", userID),
View Full Code Here

        }

        boolean allowByDefault =
            JavaUtils.isTrueExplicitly(getOption("allowByDefault"));

        AuthenticatedUser user = (AuthenticatedUser)msgContext.
                                         getProperty(MessageContext.AUTHUSER);

        if (user == null)
            throw new AxisFault("Server.NoUser",
                    Messages.getMessage("needUser00"), null, null);

        String userID = user.getName();
        Handler serviceHandler = msgContext.getService();

        if (serviceHandler == null)
            throw new AxisFault(Messages.getMessage("needService00"));
View Full Code Here

            String passwd = msgContext.getPassword();
            if (log.isDebugEnabled()) {
                log.debug( JavaUtils.getMessage("password00", passwd) );
            }

            AuthenticatedUser authUser = provider.authenticate(msgContext);

            // if a password is defined, then it must match
            if ( authUser == null)
                throw new AxisFault( "Server.Unauthenticated",
                    JavaUtils.getMessage("cantAuth01", userID),
View Full Code Here

        }

        boolean allowByDefault =
            JavaUtils.isTrueExplicitly(getOption("allowByDefault"));

        AuthenticatedUser user = (AuthenticatedUser)msgContext.
                                         getProperty(MessageContext.AUTHUSER);

        if (user == null)
            throw new AxisFault("Server.NoUser",
                    JavaUtils.getMessage("needUser00"), null, null);

        String userID = user.getName();
        Handler serviceHandler = msgContext.getService();

        if (serviceHandler == null)
            throw new AxisFault(JavaUtils.getMessage("needService00"));
View Full Code Here

TOP

Related Classes of org.apache.axis.security.AuthenticatedUser

Copyright © 2018 www.massapicom. 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.