|
3.2.1: 2012-12-13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.uri.ConnectionParameters
public class ConnectionParameters
Connection parameters, such as username/password, that may be needed to connect to a server.
Field Summary | |
---|---|
private byte[] |
clientCertificate
|
private String |
clientCertificatePassword
|
private String |
factoryId
|
private String |
host
|
private String |
password
|
private byte[] |
serverCertificate
|
private String |
username
|
Constructor Summary | |
---|---|
ConnectionParameters()
Create a new empty parameters object. |
Method Summary | |
---|---|
URI |
changeHost(URI uri)
If the connection parameters include a specific host:port a new URI is created were the host:port is replaced. |
static ConnectionParameters |
create(FileServerData fileServer)
Create a parameters object using information from the FileServer object. |
byte[] |
getClientCertificate()
Get the client certificate that BASE should use to authenticate with the server when connecting using SSL. |
String |
getClientCertificatePassword()
Get the password that is needed to unlock the client certificate. |
String |
getConnectionManagerFactoryId()
Get the connection manager factory that we should use to access the file, or null to use auto-detection. |
String |
getHost()
Get the host:port that should override the host:port specified by the file URI. |
String |
getPassword()
Get the password that should be used to authenticate the user. |
byte[] |
getServerCertificate()
Get the public server certificate that indicates that we should only trust the server if it can present a certificate that matches this. |
String |
getUsername()
Get the username that should be used to authenticate the user. |
void |
setClientCertificate(byte[] certificate)
|
void |
setClientCertificatePassword(String password)
|
void |
setConnectionManagerFactoryId(String factoryId)
|
void |
setHost(String host)
|
void |
setPassword(String password)
|
void |
setServerCertificate(byte[] certificate)
|
void |
setUsername(String username)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String factoryId
private String host
private String username
private String password
private byte[] serverCertificate
private byte[] clientCertificate
private String clientCertificatePassword
Constructor Detail |
---|
public ConnectionParameters()
Method Detail |
---|
public static ConnectionParameters create(FileServerData fileServer)
FileServer
object.
public String getConnectionManagerFactoryId()
public void setConnectionManagerFactoryId(String factoryId)
public String getHost()
public void setHost(String host)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public byte[] getServerCertificate()
FileServer.getServerCertificate()
public void setServerCertificate(byte[] certificate)
public byte[] getClientCertificate()
FileServer.getClientCertificate()
public void setClientCertificate(byte[] certificate)
public String getClientCertificatePassword()
public void setClientCertificatePassword(String password)
public URI changeHost(URI uri)
uri
- The URI to change
|
3.2.1: 2012-12-13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |