radtools.security
Interface SecureSession<SP extends SecurityPrincipal>

All Known Subinterfaces:
NetworkSession<SP>
All Known Implementing Classes:
LinuxSession

@Revision(value="$Revision: 1.7 $",
          date="$Date: 2006/12/07 21:58:16 $",
          tag="$Name:  $")
public interface SecureSession<SP extends SecurityPrincipal>

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.7 $
Author:
Greg Gibeling

Method Summary
 void close()
          TODO: Javadoc
 HostPort forward(HostPort hostport)
          TODO: Javadoc
 boolean isOpen()
          TODO: Javadoc
 ImmutablePairInterface<Long,InputStream> read(String filename, File file)
          TODO: Javadoc
 rcf.core.util.text.Text run(String command, rcf.core.scientific.units.measures.Measure<?,?,rcf.core.scientific.units.quantities.Duration> timeout)
          TODO: Javadoc
 SecureSystem<? extends SP> system()
          TODO: Javadoc
 boolean write(String filename, File contents)
          TODO: Javadoc
 boolean write(String filename, long length, InputStream contents)
          TODO: Javadoc
 boolean write(String filename, String contents)
          TODO: Javadoc
 

Method Detail

close

void close()
TODO: Javadoc


forward

HostPort forward(HostPort hostport)
TODO: Javadoc

Parameters:
hostport -
Returns:

isOpen

boolean isOpen()
TODO: Javadoc

Returns:

read

ImmutablePairInterface<Long,InputStream> read(String filename,
                                              File file)
TODO: Javadoc

Parameters:
filename -
file -
Returns:
A pair of the number of bytes read, and an input stream to get those bytes from. This interface allows an implementor to use either an in-memory buffer or a temporary file for storing the read data.

run

rcf.core.util.text.Text run(String command,
                            rcf.core.scientific.units.measures.Measure<?,?,rcf.core.scientific.units.quantities.Duration> timeout)
TODO: Javadoc

Parameters:
command -
timeout -
Returns:

system

SecureSystem<? extends SP> system()
TODO: Javadoc

Returns:

write

boolean write(String filename,
              File contents)
              throws FileNotFoundException
TODO: Javadoc

Parameters:
filename -
contents -
Returns:
Throws:
FileNotFoundException

write

boolean write(String filename,
              long length,
              InputStream contents)
TODO: Javadoc

Parameters:
filename -
length -
contents -
Returns:

write

boolean write(String filename,
              String contents)
TODO: Javadoc

Parameters:
filename -
contents -
Returns: