public class AppClientContainerBuilder extends Object implements AppClientContainer.Builder
The interface for the ACC builder is defined as AppClientContainer.Builder so the relevant JavaDoc is concentrated in that one class.
The AppClientContainerBuilder class records the information the container itself needs in order to operate.
Modifier and Type | Method and Description |
---|---|
AppClientContainerBuilder |
addMessageSecurityConfig(org.glassfish.appclient.client.acc.config.MessageSecurityConfig msConfig)
Adds an optional
MessageSecurityConfig setting. |
AppClientContainerBuilder |
authRealm(String className)
Sets the optional authentication realm for the ACC.
|
AppClientContainerBuilder |
clientCredentials(org.glassfish.appclient.client.acc.config.ClientCredential cc) |
AppClientContainerBuilder |
clientCredentials(String user,
char[] password)
Sets the optional client credentials to be used during authentication to the
back-end.
|
AppClientContainerBuilder |
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.
|
AppClientContainerBuilder |
containerProperties(List<org.glassfish.appclient.client.acc.config.Property> props)
Sets the container-level properties.
|
AppClientContainerBuilder |
containerProperties(Properties props)
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() |
AppClientContainerBuilder |
logger(Logger logger)
Sets the logger which the ACC should use as it runs.
|
AppClientContainer |
newContainer(Class mainClass) |
AppClientContainer |
newContainer(Class mainClass,
CallbackHandler callerSpecifiedCallbackHandler) |
AppClientContainer |
newContainer(URI clientURI) |
AppClientContainer |
newContainer(URI clientURI,
CallbackHandler callerSpecifiedCallbackHandler,
String callerSpecifiedMainClassName,
String callerSpecifiedAppClientName) |
AppClientContainer |
newContainer(URI clientURI,
CallbackHandler callerSpecifiedCallbackHandler,
String callerSpecifiedMainClassName,
String callerSpecifiedAppClientName,
boolean isTextAuth) |
AppClientContainerBuilder |
sendPassword(boolean sendPassword)
Sets whether the ACC should send the password to the server during
authentication.
|
public AppClientContainer newContainer(Class mainClass, CallbackHandler callerSpecifiedCallbackHandler) throws Exception
Exception
public AppClientContainer newContainer(Class mainClass) throws Exception
newContainer
in interface AppClientContainer.Builder
Exception
public AppClientContainer newContainer(URI clientURI, CallbackHandler callerSpecifiedCallbackHandler, String callerSpecifiedMainClassName, String callerSpecifiedAppClientName) throws Exception, UserError
newContainer
in interface AppClientContainer.Builder
Exception
UserError
public AppClientContainer newContainer(URI clientURI, CallbackHandler callerSpecifiedCallbackHandler, String callerSpecifiedMainClassName, String callerSpecifiedAppClientName, boolean isTextAuth) throws Exception, UserError
newContainer
in interface AppClientContainer.Builder
Exception
UserError
public AppClientContainer newContainer(URI clientURI) throws Exception, UserError
newContainer
in interface AppClientContainer.Builder
Exception
UserError
public AppClientContainerBuilder addMessageSecurityConfig(org.glassfish.appclient.client.acc.config.MessageSecurityConfig msConfig)
AppClientContainer.Builder
MessageSecurityConfig
setting.addMessageSecurityConfig
in interface AppClientContainer.Builder
msConfig
- the new MessageSecurityConfigBuilder
instancepublic List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> getMessageSecurityConfig()
getMessageSecurityConfig
in interface AppClientContainer.Builder
public AppClientContainerBuilder logger(Logger logger)
AppClientContainer.Builder
logger
in interface AppClientContainer.Builder
public Logger getLogger()
getLogger
in interface AppClientContainer.Builder
public AppClientContainerBuilder authRealm(String className)
AppClientContainer.Builder
Each specific realm will determine which properties should be set in the Properties argument.
authRealm
in interface AppClientContainer.Builder
className
- name of the class which implements the realmBuilder
instancepublic org.glassfish.appclient.client.acc.config.AuthRealm getAuthRealm()
getAuthRealm
in interface AppClientContainer.Builder
public AppClientContainerBuilder clientCredentials(String user, char[] password)
AppClientContainer.Builder
If the client does not invoke clientCredentials
then the
ACC will use a CallbackHandler
when it discovers that authentication
is required. See AppClientContainer.callerSuppliedCallbackHandler
.
clientCredentials
in interface AppClientContainer.Builder
password
- password valid in the default realm on the server for the usernameBuilder
instancepublic AppClientContainerBuilder clientCredentials(String user, char[] password, String realm)
AppClientContainer.Builder
If the client does not invoke clientCredentials
then the
ACC will use a CallbackHandler
when it discovers that authentication
is required. See AppClientContainer.callerSuppliedCallbackHandler
.
clientCredentials
in interface AppClientContainer.Builder
password
- password valid in the specified realm on the server for the usernameBuilder
instancepublic AppClientContainerBuilder clientCredentials(org.glassfish.appclient.client.acc.config.ClientCredential cc)
public org.glassfish.appclient.client.acc.config.ClientCredential getClientCredential()
getClientCredential
in interface AppClientContainer.Builder
public AppClientContainerBuilder containerProperties(Properties props)
AppClientContainer.Builder
containerProperties
in interface AppClientContainer.Builder
public AppClientContainerBuilder containerProperties(List<org.glassfish.appclient.client.acc.config.Property> props)
AppClientContainer.Builder
Typically used when setting the properties from the parsed XML config file.
containerProperties
in interface AppClientContainer.Builder
props
- Property objects to use in setting the propertiespublic Properties getContainerProperties()
AppClientContainer.Builder
getContainerProperties
in interface AppClientContainer.Builder
public AppClientContainerBuilder sendPassword(boolean sendPassword)
AppClientContainer.Builder
sendPassword
in interface AppClientContainer.Builder
public boolean getSendPassword()
getSendPassword
in interface AppClientContainer.Builder
public org.glassfish.appclient.client.acc.config.TargetServer[] getTargetServers()
getTargetServers
in interface AppClientContainer.Builder
Copyright © 2021. All rights reserved.