|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This MBean represents the object used to create DataSources that applications use to access application-scoped JDBC connection pools.
Fields inherited from class weblogic.management.configuration.ConfigurationMBean |
CACHING_STUB_SVUID,
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
java.lang.String |
getDriverClassName()
Gets the driverClassName attribute of the JDBCDataSourceFactoryMBean object |
java.lang.String |
getFactoryName()
Gets the factoryName attribute of the JDBCDataSourceFactoryMBean object |
java.lang.String |
getPassword()
The database user password. |
byte[] |
getPasswordEncrypted()
The encrypted database user password. |
java.util.Map |
getProperties()
default connection properties |
java.lang.String |
getURL()
Gets the uRL attribute of the JDBCDataSourceFactoryMBean object |
java.lang.String |
getUserName()
Gets the userName attribute of the JDBCDataSourceFactoryMBean object |
void |
setDriverClassName(java.lang.String s)
The name of the driver. |
void |
setFactoryName(java.lang.String s)
The name of this data source factory. |
void |
setPassword(java.lang.String password)
As of 8.1 sp4, this method does the following: |
void |
setPasswordEncrypted(byte[] bytes)
Encrypts the user password and sets the value of the PasswordEncrypted attribute. |
void |
setProperties(java.util.Map m)
Sets the properties attribute of the JDBCDataSourceFactoryMBean object |
void |
setURL(java.lang.String s)
The connection URL. |
void |
setUserName(java.lang.String s)
The database user name. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
freezeCurrentValue,
getNotes,
restoreDefaultValue,
setComments,
setDefaultedMBean,
setNotes,
setPersistenceEnabled |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo,
getName,
getObjectName,
getParent,
getType,
isCachingDisabled,
isRegistered,
setName,
setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute,
getAttributes,
invoke,
setAttribute,
setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister,
postRegister,
preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
Method Detail |
public void setUserName(java.lang.String s)
s
- The new userName valuepublic java.lang.String getUserName()
public java.lang.String getPassword()
The database user password. If the user password is specified in the descriptor, the descriptor value overrides this value.
As of 8.1 sp4, the getPassword()
method does the following:
PasswordEncrypted
attribute.
Using getPassword()
is a potential security risk because
the String object (which contains the unencrypted password) remains in
the JVM's memory until garbage collection removes it. Depending on how
memory is allocated in the JVM, a significant amount of time could pass
before this unencrypted data is removed from memory.
Instead of using this method, use getPasswordEncrypted()
to retrieve the encrypted password. On the same WebLogic Server that
encrypted the value of the PasswordEncrypted attribute, use
weblogic.management.EncryptionHelper.encrypt()
to encrypt the user-supplied password. Then compare the encrypted values.
getPasswordEncrypted()
public void setPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
As of 8.1 sp4, this method does the following:
PasswordEncrypted
attribute to the
encrypted parameter value.
s
- The new password valuesetPasswordEncrypted(byte[] bytes)
public byte[] getPasswordEncrypted()
The encrypted database user password. If the user password is specified in the descriptor, the descriptor value overrides this value.
EncryptionHelper
public void setPasswordEncrypted(byte[] bytes) throws javax.management.InvalidAttributeValueException
Encrypts the user password and sets the value of the PasswordEncrypted attribute.
bytes
- The new password value, as a byte arraygetPasswordEncrypted()
public void setURL(java.lang.String s)
s
- The new uRL valuepublic java.lang.String getURL()
public void setDriverClassName(java.lang.String s)
s
- The new driverClassName valuepublic java.lang.String getDriverClassName()
public java.util.Map getProperties()
public void setProperties(java.util.Map m)
m
- The new properties valuepublic void setFactoryName(java.lang.String s)
s
- The new factoryName valuepublic java.lang.String getFactoryName()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |