Examples of UserAuthenticationData


Examples of org.apache.commons.vfs2.UserAuthenticationData

                }

                final UserAuthenticator proxyAuth = builder.getProxyAuthenticator(fileSystemOptions);
                if (proxyAuth != null)
                {
                    final UserAuthenticationData authData = UserAuthenticatorUtils.authenticate(proxyAuth,
                        new UserAuthenticationData.Type[]
                        {
                            UserAuthenticationData.USERNAME,
                            UserAuthenticationData.PASSWORD
                        });
View Full Code Here

Examples of org.apache.commons.vfs2.UserAuthenticationData

        throws FileSystemException
    {
        // Create the file system
        final GenericFileName rootName = (GenericFileName) name;

        UserAuthenticationData authData = null;
        HttpClient httpClient;
        try
        {
            authData = UserAuthenticatorUtils.authenticate(fileSystemOptions, AUTHENTICATOR_TYPES);
View Full Code Here

Examples of org.apache.commons.vfs2.UserAuthenticationData

    private FTPClient createClient() throws FileSystemException
    {
        final GenericFileName rootName = getRoot();

        UserAuthenticationData authData = null;
        try
        {
            authData = UserAuthenticatorUtils.authenticate(fileSystemOptions, FtpFileProvider.AUTHENTICATOR_TYPES);

            return createClient(rootName, authData);
View Full Code Here

Examples of org.apache.commons.vfs2.UserAuthenticationData

    }

    @Override
    public UserAuthenticationData requestAuthentication(final UserAuthenticationData.Type[] types)
    {
        final UserAuthenticationData data = new UserAuthenticationData();
        for(final UserAuthenticationData.Type type : types)
        {
            if (type == UserAuthenticationData.DOMAIN)
            {
                data.setData(UserAuthenticationData.DOMAIN, UserAuthenticatorUtils.toChar(domain));
            }
            else if (type == UserAuthenticationData.USERNAME)
            {
                data.setData(UserAuthenticationData.USERNAME, UserAuthenticatorUtils.toChar(username));
            }
            else if (type == UserAuthenticationData.PASSWORD)
            {
                data.setData(UserAuthenticationData.PASSWORD, UserAuthenticatorUtils.toChar(password));
            }
            else
            {
                if (LOG.isDebugEnabled())
                {
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.