Your browser does not allow storing cookies. We recommend enabling them.


com.ssh.sft
Interface Policies.Copy

All Known Subinterfaces:
Policies.All, Policies.CopyDir, Policies.Move, Policies.MoveDir
All Known Implementing Classes:
AbstractPolicy
Enclosing interface:
Policies

public static interface Policies.Copy

The policy interface for copying files.


Method Summary
 CharConversionfromSource(File src)
           
 booleanoverwrite(File src, File dst)
          Invoked when an existing file is about to be overwritten.
 booleanstart(File src, Location dst)
          Invoked when a file copy operation from src to dst is started.
 CharConversiontoDest(Location dst)
           
 

Method Detail

start

public boolean start(File src,
                     Location dst)
              throws AbortedException
Invoked when a file copy operation from src to dst is started.

Parameters:
src - the path to copy from
dst - the path to copy to
Returns:
true if the operation may proceed, false otherwise
Throws:
AbortedException - if the entire ongoing operation should be aborted

overwrite

public boolean overwrite(File src,
                         File dst)
                  throws AbortedException
Invoked when an existing file is about to be overwritten.

Parameters:
src - the path to the file that is about to overwrite
dst - the path to the file that is about to be overwritten
Returns:
true if overwriting is allowed, false otherwise
Throws:
AbortedException - if the entire ongoing operation should be aborted

fromSource

public CharConversion fromSource(File src)
                          throws AbortedException
Throws:
AbortedException

toDest

public CharConversion toDest(Location dst)
                      throws AbortedException
Throws:
AbortedException



 

 
What to read next:

  • Reduce Secure Shell risk. Get to know the NIST 7966.



    The NISTIR 7966 guideline from the Computer Security Division of NIST is a direct call to action for organizations regardless of industry and is a mandate for the US Federal government.
    Download now
  • ISACA Practitioner Guide for SSH



    With contributions from practitioners, specialists and SSH.COM experts, the ISACA “SSH: Practitioner Considerations” guide is vital best practice from the compliance and audit community.
    Download now