Package org.apache.commons.vfs

Examples of org.apache.commons.vfs.UserAuthenticationData


    this.domain = domain;
  }

  public UserAuthenticationData requestAuthentication(UserAuthenticationData.Type[] types)
  {
    UserAuthenticationData data = new UserAuthenticationData();
    data.setData(UserAuthenticationData.DOMAIN, UserAuthenticatorUtils.toChar(domain));
    data.setData(UserAuthenticationData.USERNAME, UserAuthenticatorUtils.toChar(username));
    data.setData(UserAuthenticationData.PASSWORD, UserAuthenticatorUtils.toChar(password));
    return data;
  }
View Full Code Here


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

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

      session = SftpClientFactory.createConnection(
View Full Code Here

    {
        if (this.session == null)
        {
            // channel closed. e.g. by freeUnusedResources, but now we need it again
            Session session;
      UserAuthenticationData authData = null;
      try
            {
                final GenericFileName rootName = (GenericFileName) getRootName();

        authData = UserAuthenticatorUtils.authenticate(getFileSystemOptions(), SftpFileProvider.AUTHENTICATOR_TYPES);
View Full Code Here

                }

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

        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

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

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

      return FtpClientFactory.createConnection(rootName.getHostName(),
View Full Code Here

    return new JCRSolutionDirectFileSystem( genericRootName, fileSystemOptions, model );
  }

  private FileSystem createJCRFileSystem( final LayeredFileName genericRootName,
                                          final FileSystemOptions fileSystemOptions ) {
    UserAuthenticationData authData = null;
    try {
      authData = UserAuthenticatorUtils.authenticate( fileSystemOptions, AUTHENTICATOR_TYPES );
      final GenericFileName outerName = (GenericFileName) genericRootName.getOuterName();

      final String username = UserAuthenticatorUtils.toString( UserAuthenticatorUtils.getData
View Full Code Here

    }
  }

  private FileSystem createWebFileSystem( final LayeredFileName genericRootName,
                                          final FileSystemOptions fileSystemOptions ) throws FileSystemException {
    UserAuthenticationData authData = null;
    try {
      authData = UserAuthenticatorUtils.authenticate( fileSystemOptions, AUTHENTICATOR_TYPES );
      final GenericFileName outerName = (GenericFileName) genericRootName.getOuterName();

      final HttpClient httpClient = HttpClientFactory.createConnection(
View Full Code Here

        String zone = builder.getZone(opts);
        char[] username = null;
        char[] password = null;

        UserAuthenticationData authData = null;
        try {
            authData = UserAuthenticatorUtils.authenticate(opts, SRBFileProvider.AUTHENTICATOR_TYPES);
            if (authData != null) {                                                     
                //gets data of given type from the UserAuthenticationData or
                //null if there is no data or data of this type is not available
View Full Code Here

        String password = null;

        //log.debug(mdasUserInfoDirectory + " " + defaultStorageResource + " " + homeDir + " " + mdasDomainName + " " + mcatZone + " " + useLocalMdasFiles);

        // Determine the username and password to use (given in either URI, UserAuthenticationData, or not given).
        UserAuthenticationData authData = null;
        try {
            authData = UserAuthenticatorUtils.authenticate(opts, SrbFileProvider.AUTHENTICATOR_TYPES);
            if (authData != null) {
                //gets data of given type from the UserAuthenticationData or
                //null if there is no data or data of this type is not available
View Full Code Here

TOP

Related Classes of org.apache.commons.vfs.UserAuthenticationData

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.