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.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    com.sun.enterprise.config.serverbeans.Config
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    org.glassfish.grizzly.config.dom.Protocol
     
    org.glassfish.grizzly.config.dom.Protocol
    findOrCreateProtocol(String name, boolean create)
     
    void
    populateSslElement(org.glassfish.grizzly.config.dom.Ssl newSsl)
     
    void
    reportError(org.glassfish.api.ActionReport report, org.jvnet.hk2.config.TransactionFailure e)
     
    void
    reportSuccess(org.glassfish.api.ActionReport report)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • listenerId

      public String listenerId
    • config

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

    • CreateSsl

      public CreateSsl()
  • Method Details

    • 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