Class 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.AdminCommand
    Create 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 Detail

      • listenerId

        public String listenerId
      • config

        @Inject
        @Named("default-instance-name")
        public com.sun.enterprise.config.serverbeans.Config config
    • Constructor Detail

      • CreateSsl

        public CreateSsl()
    • 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:
        execute in interface org.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