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