com.sun.enterprise.admin.commands
Class CreateSsl

java.lang.Object
  extended by com.sun.enterprise.admin.commands.CreateSsl
All Implemented Interfaces:
AdminCommand

@Service(name="create-ssl")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
@ExecuteOn(value={DAS,INSTANCE})
@TargetType(value={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] --certname cert_name [--ssl2enabled=false] [--ssl2ciphers ssl2ciphers] [--ssl3enabled=true] [--ssl3tlsciphers ssl3tlsciphers] [--tlsenabled=true] [--tlsrollbackenabled=true] [--clientauthenabled=false] [--target target(Default server)] [listener_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
 Config config
           
 String listenerId
           
 
Constructor Summary
CreateSsl()
           
 
Method Summary
 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
 org.glassfish.grizzly.config.dom.Protocol findOrCreateProtocol(String name)
           
 void populateSslElement(org.glassfish.grizzly.config.dom.Ssl newSsl)
           
 void reportError(ActionReport report, org.jvnet.hk2.config.TransactionFailure e)
           
 void reportSuccess(ActionReport report)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerId

public String listenerId

config

@Inject
@Named(value="default-instance-name")
public Config config
Constructor Detail

CreateSsl

public CreateSsl()
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:
execute in interface AdminCommand
Parameters:
context - information

reportError

public void reportError(ActionReport report,
                        org.jvnet.hk2.config.TransactionFailure e)

reportSuccess

public void reportSuccess(ActionReport report)

populateSslElement

public void populateSslElement(org.glassfish.grizzly.config.dom.Ssl newSsl)

findOrCreateProtocol

public org.glassfish.grizzly.config.dom.Protocol findOrCreateProtocol(String name)
                                                               throws org.jvnet.hk2.config.TransactionFailure
Throws:
org.jvnet.hk2.config.TransactionFailure


Copyright © 2012. All Rights Reserved.