Class CreateSsl
- java.lang.Object
-
- com.sun.enterprise.admin.commands.CreateSsl
-
- All Implemented Interfaces:
AdminCommand
@Service(name="create-ssl") @PerLookup @ExecuteOn({DAS,INSTANCE}) @TargetType({DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG}) public class CreateSsl extends Object implements AdminCommand
Create Ssl Command Usage: create-ssl --type [http-listener|iiop-listener|iiop-service|protocol] --certname cert_name [--ssl3tlsciphers ssl3tlsciphers] [--tlsrollbackenabled=true] [--clientauthenabled=false] [--target target(Default server)] [listener_id|protocol_id] domain.xml element example <ssl cert-nickname="s1as" client-auth-enabled="false" tls-enabled="true" tls-rollback-enabled="true"/>- Author:
- Nandini Ektare
-
-
Field Summary
Fields Modifier and Type Field Description ConfigconfigStringlistenerId
-
Constructor Summary
Constructors Constructor Description CreateSsl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(AdminCommandContext context)Executes the command with the command parameters passed as Properties where the keys are the paramter names and the values the parameter valuesProtocolfindOrCreateProtocol(String name)ProtocolfindOrCreateProtocol(String name, boolean create)voidpopulateSslElement(Ssl newSsl)voidreportError(ActionReport report, TransactionFailure e)voidreportSuccess(ActionReport report)
-
-
-
Method Detail
-
execute
public void execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties where the keys are the paramter names and the values the parameter values- Specified by:
executein interfaceAdminCommand- Parameters:
context- information
-
reportError
public void reportError(ActionReport report, TransactionFailure e)
-
reportSuccess
public void reportSuccess(ActionReport report)
-
populateSslElement
public void populateSslElement(Ssl newSsl)
-
findOrCreateProtocol
public Protocol findOrCreateProtocol(String name, boolean create) throws TransactionFailure
- Throws:
TransactionFailure
-
findOrCreateProtocol
public Protocol findOrCreateProtocol(String name) throws TransactionFailure
- Throws:
TransactionFailure
-
-