Class GridFTPControlChannel


  • public class GridFTPControlChannel
    extends FTPControlChannel
    GridFTP control channel, unlike the vanilla control channel, uses GSI autentication.
    • Field Detail

      • credentials

        protected org.ietf.jgss.GSSCredential credentials
      • protection

        protected int protection
    • Constructor Detail

      • GridFTPControlChannel

        public GridFTPControlChannel​(java.lang.String host,
                                     int port)
      • GridFTPControlChannel

        public GridFTPControlChannel​(java.io.InputStream in,
                                     java.io.OutputStream out)
    • Method Detail

      • setProtection

        public void setProtection​(int protection)
        Sets data channel protection level.
        Parameters:
        protection - should be CLEAR, SAFE, or PRIVATE, or CONFIDENTIAL.
      • getProtection

        public int getProtection()
        Returns control channel protection level.
        Returns:
        control channel protection level: CLEAR, SAFE, or PRIVATE, or CONFIDENTIAL.
      • setAuthorization

        public void setAuthorization​(Authorization authorization)
        Sets authorization method for the control channel.
        Parameters:
        authorization - authorization method.
      • getAuthorization

        public Authorization getAuthorization()
        Returns authorization method for the control channel.
        Returns:
        authorization method performed on the control channel.
      • authenticate

        public void authenticate​(org.ietf.jgss.GSSCredential credential)
                          throws java.io.IOException,
                                 ServerException
        Performs authentication with specified user credentials.
        Parameters:
        credential - user credentials to use.
        Throws:
        java.io.IOException - on i/o error
        ServerException - on server refusal or faulty server behavior
      • authenticate

        public void authenticate​(org.ietf.jgss.GSSCredential credential,
                                 java.lang.String username)
                          throws java.io.IOException,
                                 ServerException
        Performs authentication with specified user credentials and a specific username (assuming the user dn maps to the passed username).
        Parameters:
        credential - user credentials to use.
        username - specific username to authenticate as.
        Throws:
        java.io.IOException - on i/o error
        ServerException - on server refusal or faulty server behavior
      • setCredentials

        protected void setCredentials​(org.ietf.jgss.GSSCredential credentials)
      • getCredentials

        protected org.ietf.jgss.GSSCredential getCredentials()