Interface ProviderConfig
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,org.jvnet.hk2.config.types.PropertyBag
provider-config element defines the configuration of an authentication provider.
A provider-config with no contained request-policy or response-policy sub-elements, is a null provider. The container will not instantiate or invoke the methods of a null provider, and as such the implementation class of a null provider need not exist.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull StringGets the value of theclassNameproperty.List<org.jvnet.hk2.config.types.Property>Properties.@Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*",message="Pattern: [A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*") @NotNull StringGets the value of theproviderIdproperty.@NotNull @Pattern(regexp="(client|server|client-server)",message="Valid values: (client|server|client-server)") StringGets the value of theproviderTypeproperty.Gets the value of therequestPolicyproperty.Gets the value of theresponsePolicyproperty.voidsetClassName(String className) Sets the value of theclassNameproperty.voidsetProviderId(String providerId) Sets the value of theproviderIdproperty.voidsetProviderType(String providerType) Sets the value of theproviderTypeproperty.voidsetRequestPolicy(RequestPolicy requestPolicy) Sets the value of therequestPolicyproperty.voidsetResponsePolicy(ResponsePolicy responsePolicy) Sets the value of theresponsePolicyproperty.Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Field Details
-
PROVIDER_TYPES
- See Also:
-
-
Method Details
-
getProviderId
@Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*", message="Pattern: [A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*") @NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*",message="Pattern: [A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*") @NotNull String getProviderId()Gets the value of theproviderIdproperty.Identifier used to uniquely identify this
provider-configelement.- Returns:
- possible object is
String
-
setProviderId
Sets the value of theproviderIdproperty.- Parameters:
providerId- allowed object isString- Throws:
PropertyVetoException
-
getProviderType
@NotNull @Pattern(regexp="(client|server|client-server)", message="Valid values: (client|server|client-server)") @NotNull @Pattern(regexp="(client|server|client-server)",message="Valid values: (client|server|client-server)") String getProviderType()Gets the value of theproviderTypeproperty.Defines whether the provider is a client authentication provider or a server authentication provider.
- Returns:
- possible object is
String
-
setProviderType
Sets the value of theproviderTypeproperty.- Parameters:
providerType- allowed object isString- Throws:
PropertyVetoException
-
getClassName
Gets the value of theclassNameproperty.Defines the java implementation class of the provider.
Client authentication providers must implement the
com.sun.enterprise.security.jauth.ClientAuthModuleinterface. Server-side providers must implement thecom.sun.enterprise.security.jauth.ServerAuthModuleinterface.A provider may implement both interfaces, but it must implement the interface corresponding to its provider type.
- Returns:
- possible object is
String
-
setClassName
Sets the value of theclassNameproperty.- Parameters:
className- allowed object isString- Throws:
PropertyVetoException
-
getRequestPolicy
RequestPolicy getRequestPolicy()Gets the value of therequestPolicyproperty.Defines the authentication policy requirements associated with request processing performed by the authentication provider.
- Returns:
- possible object is
RequestPolicy
-
setRequestPolicy
Sets the value of therequestPolicyproperty.- Parameters:
requestPolicy- allowed object isRequestPolicy- Throws:
PropertyVetoException
-
getResponsePolicy
ResponsePolicy getResponsePolicy()Gets the value of theresponsePolicyproperty.Defines the authentication policy requirements associated with the response processing performed by the authentication provider.
- Returns:
- possible object is
ResponsePolicy
-
setResponsePolicy
Sets the value of theresponsePolicyproperty.- Parameters:
responsePolicy- allowed object isResponsePolicy- Throws:
PropertyVetoException
-
getProperty
@PropertyDesc(name="security.config",defaultValue="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml",description="Specifies the location of the message security configuration file") @PropertyDesc(name="debug",defaultValue="false",dataType=java.lang.Boolean.class,description="Enables dumping of server provider debug messages to the server log") @PropertyDesc(name="dynamic.username.password",defaultValue="false",dataType=java.lang.Boolean.class,description="Signals the provider runtime to collect the user name and password from the CallbackHandler for each request. If false, the user name and password for wsse:UsernameToken(s) is collected once, during module initialization. Applicable only for a ClientAuthModule") @PropertyDesc(name="encryption.key.alias",defaultValue="s1as",description="Specifies the encryption key used by the provider. The key is identified by its keystore alias") @PropertyDesc(name="signature.key.alias",defaultValue="s1as",description="Specifies the signature key used by the provider. The key is identified by its keystore alias") List<org.jvnet.hk2.config.types.Property> getProperty()Properties.- Specified by:
getPropertyin interfaceorg.jvnet.hk2.config.types.PropertyBag
-