create-message-security-provider
Enables administrators to create a message security provider, which specifies how SOAP messages will be secured.
Synopsis
asadmin [asadmin-options] create-message-security-provider [--help]
[--target target]
--classname provider_class
[--layer message_layer] [--providertype provider_type]
[--requestauthsource request_auth_source ]
[--requestauthrecipient request_auth_recipient ]
[--responseauthsource response_auth_source ]
[--responseauthrecipient response_auth_recipient ]
[--isdefaultprovider] [--property name=value[:name=value]*]
provider_name
Description
The create-message-security-provider
subcommand enables the administrator to create a message security provider for the security service which specifies how SOAP messages will be secured.
This command is supported in remote mode only.
Options
If an option has a short option name, then the short option precedes the long option name. Short options have one dash whereas long options have two dashes.
- asadmin-options
-
Options for the
asadmin
utility. For information about these options, see theasadmin
help page. --help
-?
-
Displays the help text for the subcommand.
--target
-
Specifies the target for which you are creating the message security provider. The following values are valid:
server
-
Creates the provider for the default server instance
server
and is the default value. domain
-
Creates the provider for the domain.
- cluster_name
-
Creates the provider for every server instance in the cluster.
- instance_name
-
Creates the provider for a particular sever instance.
--classname
-
Defines the Java implementation class of the provider. Client authentication providers must implement the
com.sun.enterprise. security.jauth.ClientAuthModule
interface. Server-side providers must implement thecom.sun.enterprise.security jauth.ServerAuthModule
interface. A provider may implement both interfaces, but it must implement the interface corresponding to its provider type. --layer
-
The message-layer entity used to define the value of the
auth-layer
attribute ofmessage-security-config
elements. The default isHttpServlet
. Another option isSOAP
. --providertype
-
Establishes whether the provider is to be used as client authentication provider, server authentication provider, or both. Valid options for this property include
client
,server
, orclient-server
. --requestauthsource
-
The
auth-source
attribute defines a requirement for message-layer sender authentication (e.g. username password) or content authentication (e.g. digital signature) to be applied to request messages. Possible values aresender
orcontent
. When this argument is not specified, source authentication of the request is not required. --requestauthrecipient
-
The
auth-recipient
attribute defines a requirement for message-layer authentication of the receiver of a message to its sender (e.g. by XML encryption). Possible values arebefore-content
orafter-content
. The default value isafter-content
. --responseauthsource
-
The
auth-source
attribute defines a requirement for message-layer sender authentication (e.g. username password) or content authentication (e.g. digital signature) to be applied to response messages. Possible values aresender
orcontent
. When this option is not specified, source authentication of the response is not required. --responseauthrecipient
-
The
auth-recipient
attribute defines a requirement for message-layer authentication of the receiver of the response message to its sender (e.g. by XML encryption). Possible values arebefore-content
orafter-content
. The default value isafter-content
. --isdefaultprovider
-
The
default-provider
attribute is used to designate the provider as the default provider (at the layer) of the type or types identified by theprovidertype
argument. There is no default associated with this option. --property
-
Use this property to pass provider-specific property values to the provider when it is initialized. Properties passed in this way might include key aliases to be used by the provider to get keys from keystores, signing, canonicalization, encryption algorithms, etc.
The following properties may be set:security.config
-
Specifies the location of the message security configuration file. To point to a configuration file in the domain-dir`/config` directory, use the system property
${com.sun.aas.instanceRoot}/config/
, for example:${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml
. The default is domain-dir`/config/ wss-serverconfig-1.0.xml`. debug
-
If
true
, enables dumping of server provider debug messages to the server log. The default isfalse
. dynamic.username. password
-
If
true
, signals the provider runtime to collect the username and password from theCallbackHandler
for each request. Iffalse
, the username and password forwsse:UsernameToken
(s) is collected once, during module initialization. This property is only applicable for aClientAuthModule
. The default isfalse
. encryption.key.alias
-
Specifies the encryption key used by the provider. The key is identified by its keystore alias. The default value is
s1as
. signature.key.alias
-
Specifies the signature key used by the provider. The key is identified by its keystore alias. The default value is
s1as
.
Examples
Example 1 Creating a Message Security Provider
The following example shows how to create a message security provider for a client.
asadmin> create-message-security-provider
--classname com.sun.enterprise.security.jauth.ClientAuthModule
--providertype client mySecurityProvider