org.subethamail.smtp.server
Class RequireTLSCommandWrapper

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

public class RequireTLSCommandWrapper
extends java.lang.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(java.lang.String commandString, Session sess)
           
 HelpMessage getHelp()
           
 java.lang.String getName()
           
 
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(java.lang.String commandString,
                    Session sess)
             throws java.io.IOException
Specified by:
execute in interface Command
Throws:
java.io.IOException

getHelp

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

getName

public java.lang.String getName()
Specified by:
getName in interface Command


Copyright © 2006-2011. All Rights Reserved.