org.subethamail.smtp.server
Class RequireTLSCommandWrapper

java.lang.Object
  extended by org.subethamail.smtp.server.RequireTLSCommandWrapper
All Implemented Interfaces:
Command

public class RequireTLSCommandWrapper
extends Object
implements Command

Verifies the presence of a TLS connection if TLS is required. The wrapped command is executed when the test succeeds.

Author:
Erik van Oosten

Constructor Summary
RequireTLSCommandWrapper(Command wrapped)
           
 
Method Summary
 void execute(String commandString, Session sess)
           
 HelpMessage getHelp()
           
 String getName()
          Returns the name of the command in upper case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequireTLSCommandWrapper

public RequireTLSCommandWrapper(Command wrapped)
Parameters:
wrapped - the wrapped command (not null)
Method Detail

execute

public void execute(String commandString,
                    Session sess)
             throws IOException,
                    DropConnectionException
Specified by:
execute in interface Command
Throws:
IOException
DropConnectionException

getHelp

public HelpMessage getHelp()
                    throws CommandException
Specified by:
getHelp in interface Command
Throws:
CommandException

getName

public String getName()
Description copied from interface: Command
Returns the name of the command in upper case. For example "QUIT".

Specified by:
getName in interface Command


Copyright © 2006-2012. All Rights Reserved.