|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
com.infoengine.connector.IeConnectionRequestInfo
used to pass userName and password information when creating a new connection factory.
Nested Class Summary |
Nested classes inherited from class java.util.Hashtable |
|
Field Summary | |
private Principal |
authUser
|
static String |
CERTIFICATE_ALIAS
|
static String |
CONNECTION_IMPL
|
static String |
DEFAULT_CONNECTION_IMPL
|
private String |
hash
|
static String |
KEYSTORE_FILENAME
|
static String |
KEYSTORE_PACKAGE_PROVIDER
|
static String |
KEYSTORE_PASS
|
static String |
KEYSTORE_TYPE
|
private Locale |
locale
|
static String |
PASSWORD
|
private PrivateKey |
privateKey
|
static String |
PRIVATEKEY_ALIAS
|
static String |
PRIVATEKEY_PASS
|
static String |
SIGN_REQUESTS
|
static String |
USERNAME
|
private X509Certificate |
x509certificate
|
Fields inherited from class java.util.Properties |
defaults |
Fields inherited from class java.util.Hashtable |
|
Constructor Summary | |
(package private) |
IeConnectionRequestInfo()
create a new IeConnectionRequestInfo |
Method Summary | |
private void |
_rehash()
rehash |
Object |
clone()
make a copy of this object |
boolean |
equals(Object other)
compare the ConnectionRequestInfo object with another for equality |
Principal |
getAuthUser()
get the "trusted" authentcated user |
X509Certificate |
getCertificate()
|
String |
getConnectionImplementation()
Get the connection implementation in use |
Class |
getConnectionImplementationClass()
Get the connection implementation class or null if invalid connectionImplementation |
Locale |
getLocale()
get the request Locale |
String |
getPassword()
get the default password |
PrivateKey |
getPrivateKey()
|
String |
getUserName()
get the default userName |
int |
hashCode()
generate this object's hashCode. |
private void |
initSecurity()
|
void |
load(String props)
load properties from a string formated like a properties file |
(package private) void |
merge(IeConnectionSpec spec)
merge info from IeConnection spec into this object |
void |
setAuthUser(Principal p)
set the "trusted" authenticated user |
void |
setConnectionImplementation(String newImpl)
set the connection implementation to use |
void |
setLocale(Locale locale)
set the request Locale |
void |
setPassword(String newPassword)
set the default password |
void |
setUserName(String newUser)
set the default userName |
boolean |
signRequests()
should the connector sign outgoing requests? |
String |
toString()
return string representation user:pass |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String USERNAME
public static final String PASSWORD
public static final String CONNECTION_IMPL
public static final String DEFAULT_CONNECTION_IMPL
public static final String SIGN_REQUESTS
public static final String KEYSTORE_TYPE
public static final String KEYSTORE_PACKAGE_PROVIDER
public static final String KEYSTORE_FILENAME
public static final String KEYSTORE_PASS
public static final String PRIVATEKEY_ALIAS
public static final String PRIVATEKEY_PASS
public static final String CERTIFICATE_ALIAS
private X509Certificate x509certificate
private PrivateKey privateKey
private Locale locale
private Principal authUser
private String hash
Constructor Detail |
IeConnectionRequestInfo()
Method Detail |
void merge(IeConnectionSpec spec)
spec
- public void setConnectionImplementation(String newImpl)
newImpl
- new implementation classpublic String getConnectionImplementation()
public Class getConnectionImplementationClass()
public void setUserName(String newUser)
newUser
- new userNamepublic String getUserName()
public void setPassword(String newPassword)
newPassword
- the new passwordpublic String getPassword()
public void setLocale(Locale locale)
locale
- the locale to usepublic Locale getLocale()
public void setAuthUser(Principal p)
p
- public Principal getAuthUser()
public boolean signRequests()
private void initSecurity() throws GeneralSecurityException, PrivilegedActionException
GeneralSecurityException
PrivilegedActionException
public X509Certificate getCertificate() throws GeneralSecurityException, PrivilegedActionException
GeneralSecurityException
PrivilegedActionException
public PrivateKey getPrivateKey() throws GeneralSecurityException, PrivilegedActionException
GeneralSecurityException
PrivilegedActionException
private void _rehash()
public int hashCode()
hashCode
in interface javax.resource.spi.ConnectionRequestInfo
public boolean equals(Object other)
equals
in interface javax.resource.spi.ConnectionRequestInfo
other
- object to compare to
public Object clone()
public void load(String props)
props
- the properties to loadpublic String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |