public static interface AppClientContainer.Builder
Modifier and Type | Method and Description |
---|---|
AppClientContainer.Builder |
addMessageSecurityConfig(org.glassfish.appclient.client.acc.config.MessageSecurityConfig msConfig)
Adds an optional
MessageSecurityConfig setting. |
AppClientContainer.Builder |
authRealm(String className)
Sets the optional authentication realm for the ACC.
|
AppClientContainer.Builder |
clientCredentials(String user,
char[] password)
Sets the optional client credentials to be used during authentication to the
back-end.
|
AppClientContainer.Builder |
clientCredentials(String user,
char[] password,
String realm)
Sets the optional client credentials and server-side realm to be used during
authentication to the back-end.
|
AppClientContainer.Builder |
containerProperties(List<org.glassfish.appclient.client.acc.config.Property> containerProperties)
Sets the container-level properties.
|
AppClientContainer.Builder |
containerProperties(Properties containerProperties)
Sets the container-level Properties.
|
org.glassfish.appclient.client.acc.config.AuthRealm |
getAuthRealm() |
org.glassfish.appclient.client.acc.config.ClientCredential |
getClientCredential() |
Properties |
getContainerProperties()
Returns the container-level Properties.
|
Logger |
getLogger() |
List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> |
getMessageSecurityConfig() |
boolean |
getSendPassword() |
org.glassfish.appclient.client.acc.config.TargetServer[] |
getTargetServers() |
AppClientContainer.Builder |
logger(Logger logger)
Sets the logger which the ACC should use as it runs.
|
AppClientContainer |
newContainer(Class mainClass) |
AppClientContainer |
newContainer(URI archiveURI) |
AppClientContainer |
newContainer(URI archiveURI,
CallbackHandler callbackHandler,
String mainClassName,
String appName) |
AppClientContainer |
newContainer(URI archiveURI,
CallbackHandler callbackHandler,
String mainClassName,
String appName,
boolean isTextAuth) |
AppClientContainer.Builder |
sendPassword(boolean sendPassword)
Sets whether the ACC should send the password to the server during
authentication.
|
AppClientContainer newContainer(URI archiveURI) throws Exception, UserError
AppClientContainer newContainer(URI archiveURI, CallbackHandler callbackHandler, String mainClassName, String appName) throws Exception, UserError
AppClientContainer newContainer(URI archiveURI, CallbackHandler callbackHandler, String mainClassName, String appName, boolean isTextAuth) throws Exception, UserError
AppClientContainer newContainer(Class mainClass) throws Exception, UserError
org.glassfish.appclient.client.acc.config.TargetServer[] getTargetServers()
AppClientContainer.Builder addMessageSecurityConfig(org.glassfish.appclient.client.acc.config.MessageSecurityConfig msConfig)
MessageSecurityConfig
setting.msConfig
- the new MessageSecurityConfigBuilder
instanceList<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> getMessageSecurityConfig()
AppClientContainer.Builder authRealm(String className)
Each specific realm will determine which properties should be set in the Properties argument.
className
- name of the class which implements the realmBuilder
instanceorg.glassfish.appclient.client.acc.config.AuthRealm getAuthRealm()
AppClientContainer.Builder clientCredentials(String user, char[] password)
If the client does not invoke clientCredentials
then the
ACC will use a CallbackHandler
when it discovers that authentication
is required. See AppClientContainer.callerSuppliedCallbackHandler
.
username
- username valid in the default realm on the serverpassword
- password valid in the default realm on the server for the usernameBuilder
instanceorg.glassfish.appclient.client.acc.config.ClientCredential getClientCredential()
AppClientContainer.Builder clientCredentials(String user, char[] password, String realm)
If the client does not invoke clientCredentials
then the
ACC will use a CallbackHandler
when it discovers that authentication
is required. See AppClientContainer.callerSuppliedCallbackHandler
.
username
- username valid in the specified realm on the serverpassword
- password valid in the specified realm on the server for the usernamerealmName
- name of the realm on the server within which the credentials are validBuilder
instanceAppClientContainer.Builder containerProperties(Properties containerProperties)
containerProperties
- AppClientContainer.Builder containerProperties(List<org.glassfish.appclient.client.acc.config.Property> containerProperties)
Typically used when setting the properties from the parsed XML config file.
containerProperties
- Property objects to use in setting the propertiesProperties getContainerProperties()
AppClientContainer.Builder logger(Logger logger)
logger
- Logger getLogger()
AppClientContainer.Builder sendPassword(boolean sendPassword)
sendPassword
- boolean getSendPassword()
Copyright © 2019. All rights reserved.