DescriptorBean
, SettableBean
, StandardInterface
public interface RDBMSSecurityStoreMBean extends StandardInterface, DescriptorBean
The MBean that represents configuration attributes for a RDBMS security store. It is used to specify the required and optional properties for connecting to a RDBMS back-end store.
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getConnectionProperties() |
The JDBC driver specific connection parameters.
|
java.lang.String |
getConnectionURL() |
The URL of the database to which to connect.
|
java.lang.String |
getDriverName() |
The full package name of the JDBC driver class used to create the physical database connections in the
connection pool.
|
int |
getJMSExceptionReconnectAttempts() |
The number of times to attempt to reconnect if the JMS system notifies Kodo of a serious connection
error.
|
java.lang.String |
getJMSTopic() |
The JMS topic to which the Kodo remote commit provider should publish notifications and subscribe
for notifications sent from other JVMs.
|
java.lang.String |
getJMSTopicConnectionFactory() |
The JNDI name of a
javax.jms.TopicConnectionFactory instance to use for finding JMS topics. |
java.lang.String |
getJNDIPassword() |
The password to authenticate the user defined in the
JNDIUsername attribute for Kodo notification. |
byte[] |
getJNDIPasswordEncrypted() |
Returns the encrypted password to authenticate the user defined in the
JNDIUsername attribute for
Kodo notification. |
java.lang.String |
getJNDIUsername() |
The JNDI user name used for Kodo notification.
|
java.lang.String |
getName() |
The name of this configuration.
|
java.lang.String |
getNotificationProperties() |
The comma-delimited list of key-value properties to pass to the JNDI InitialContext on construction,
in the form of
xxKey=xxValue, xxKey=xxValue . |
java.lang.String |
getPassword() |
The password for the user specified in the
Username attribute for connecting
to the datastore. |
byte[] |
getPasswordEncrypted() |
Returns the encrypted password to authenticate the user defined in the
Username attribute when
connecting to the data store. |
RealmMBean |
getRealm() |
Returns the realm that contains this RDBMS security store.
|
java.lang.String |
getUsername() |
The username to use when connecting to the datastore.
|
void |
setConnectionProperties(java.lang.String connectionProperties) |
Sets the value of the ConnectionProperties attribute.
|
void |
setConnectionURL(java.lang.String connectionURL) |
Sets the value of the ConnectionURL attribute.
|
void |
setDriverName(java.lang.String driverName) |
Sets the value of the DriverName attribute.
|
void |
setJMSExceptionReconnectAttempts(int jmsExceptionReconnectAttempts) |
Sets the value of the JMSExceptionReconnectAttempts attribute.
|
void |
setJMSTopic(java.lang.String jmsTopic) |
Sets the value of the JMSTopic attribute.
|
void |
setJMSTopicConnectionFactory(java.lang.String jmsTopicConnectionFactory) |
Sets the value of the JMSTopicConnectionFactory attribute.
|
void |
setJNDIPassword(java.lang.String password) |
Sets the value of the JNDIPassword attribute.
|
void |
setJNDIPasswordEncrypted(byte[] bytes) |
Encrypts the JNDI password and sets the value of the JNDIPasswordEncrypted attribute.
|
void |
setJNDIUsername(java.lang.String username) |
Sets the value of the JNDI Username attribute.
|
void |
setNotificationProperties(java.lang.String notificationProperties) |
Sets the value of the NotificationProperties attribute.
|
void |
setPassword(java.lang.String password) |
Sets the value of the Password attribute.
|
void |
setPasswordEncrypted(byte[] bytes) |
Encrypts the user password and sets the value of the PasswordEncrypted attribute.
|
void |
setUsername(java.lang.String username) |
Sets the value of the Username attribute.
|
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
java.lang.String getUsername()
void setUsername(java.lang.String username) throws javax.management.InvalidAttributeValueException
Sets the value of the Username attribute.
The string value must be explicitly specified and satisfy the constraint (value != null) && (value.trim().length() > 0.
username
- the new Username valuejavax.management.InvalidAttributeValueException
java.lang.String getPassword()
The password for the user specified in the Username
attribute for connecting
to the datastore.
When getting the value of this attribute, WebLogic Server does the following:
PasswordEncrypted
attribute.When you set the value of this attribute, WebLogic Server does the following:
PasswordEncrypted
attribute to the encrypted value.Note that use of the Password
attribute is a potential security risk because the String object
that contains the unencrypted password remains in the JVM's memory until garbage collection removes it
and the memory is reallocated. 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 attribute, use PasswordEncrypted
.
getPasswordEncrypted()
void setPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
password
- the new Password valuejavax.management.InvalidAttributeValueException
getPassword()
,
setPasswordEncrypted(byte[])
byte[] getPasswordEncrypted()
Returns the encrypted password to authenticate the user defined in the Username
attribute when
connecting to the data store.
To set this attribute, use weblogic.management.EncryptionHelper.encrypt()
to encrypt the
value. Then set this attribute to the output of the encrypt() method.
To compare a password that a user enters with the encrypted value of this attribute, go to the same
WebLogic Server instance that you used to set and encrypt this attribute and use
weblogic.management.EncryptionHelper.encrypt()
to encrypt the user-supplied password.
Then compare the encrypted values.
void setPasswordEncrypted(byte[] bytes) throws javax.management.InvalidAttributeValueException
bytes
- the new password value as a byte arrayjavax.management.InvalidAttributeValueException
getPasswordEncrypted()
java.lang.String getJNDIUsername()
void setJNDIUsername(java.lang.String username) throws javax.management.InvalidAttributeValueException
username
- the new JNDIUsername valuejavax.management.InvalidAttributeValueException
java.lang.String getJNDIPassword()
The password to authenticate the user defined in the JNDIUsername
attribute for Kodo notification.
When getting the value of this attribute, WebLogic Server does the following:
JNDIPasswordEncrypted
attribute.When you set the value of this attribute, WebLogic Server does the following:
JNDIPasswordEncrypted
attribute to the encrypted value.Using this attribute (JNDIPassword
) 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
and the memory is reallocated. 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 attribute, use JNDIPasswordEncrypted
.
getJNDIPasswordEncrypted()
void setJNDIPassword(java.lang.String password) throws javax.management.InvalidAttributeValueException
password
- the new JNDIPassword valuejavax.management.InvalidAttributeValueException
getJNDIPassword()
,
setJNDIPasswordEncrypted(byte[])
byte[] getJNDIPasswordEncrypted()
Returns the encrypted password to authenticate the user defined in the JNDIUsername
attribute for
Kodo notification.
To set this attribute, use weblogic.management.EncryptionHelper.encrypt()
to encrypt the
value. Then set this attribute to the output of the encrypt() method.
To compare a password that a user enters with the encrypted value of this attribute, go to the same
WebLogic Server instance that you used to set and encrypt this attribute and use
weblogic.management.EncryptionHelper.encrypt()
to encrypt the user-supplied password.
Then compare the encrypted values.
void setJNDIPasswordEncrypted(byte[] bytes) throws javax.management.InvalidAttributeValueException
bytes
- the new password value as a byte arrayjavax.management.InvalidAttributeValueException
getPasswordEncrypted()
java.lang.String getConnectionURL()
The URL of the database to which to connect. The format of the URL varies by JDBC driver.
The URL is passed to the JDBC driver to create the physical database connections.
void setConnectionURL(java.lang.String connectionURL) throws javax.management.InvalidAttributeValueException
Sets the value of the ConnectionURL attribute.
The string value must be explicitly specified and satisfy the constraint (value != null) && (value.trim().length() > 0.
connectionURL
- the new ConnectionURL valuejavax.management.InvalidAttributeValueException
java.lang.String getDriverName()
The full package name of the JDBC driver class used to create the physical database connections in the connection pool. Note that this driver class must be in the classpath of any server to which it is deployed.
For example:
oracle.jdbc.OracleDriver
com.microsoft.sqlserver.jdbc.SQLServerDriver
It must be the name of a class that implements the java.sql.Driver
interface. The full
pathname of the JDBC driver is available in the documentation.
void setDriverName(java.lang.String driverName) throws javax.management.InvalidAttributeValueException
Sets the value of the DriverName attribute.
The string value must be explicitly specified and satisfy the constraint (value != null) && (value.trim().length() > 0.
driverName
- the new DriverName valuejavax.management.InvalidAttributeValueException
java.lang.String getConnectionProperties()
The JDBC driver specific connection parameters. This attribute is a comma-delimited list of key-value
properties to pass to the driver for configuration of JDBC connection pool, in the form of xxKey=xxValue,
xxKey=xxValue
.
The syntax of the attribute will be validated and an InvalidAttributeValueException
is thrown
if the check failed.
void setConnectionProperties(java.lang.String connectionProperties) throws javax.management.InvalidAttributeValueException
connectionProperties
- the new ConnectionProperties valuejavax.management.InvalidAttributeValueException
java.lang.String getJMSTopic()
void setJMSTopic(java.lang.String jmsTopic) throws javax.management.InvalidAttributeValueException
jmsTopic
- the new JMSTopic valuejavax.management.InvalidAttributeValueException
java.lang.String getJMSTopicConnectionFactory()
The JNDI name of a javax.jms.TopicConnectionFactory
instance to use for finding JMS topics.
This setting varies depending on the application server in use. Consult the JMS documentation for details about how this parameter should be specified.
void setJMSTopicConnectionFactory(java.lang.String jmsTopicConnectionFactory) throws javax.management.InvalidAttributeValueException
jmsTopicConnectionFactory
- the new JMSTopicConnectionFactory valuejavax.management.InvalidAttributeValueException
int getJMSExceptionReconnectAttempts()
The number of times to attempt to reconnect if the JMS system notifies Kodo of a serious connection error.
The default is 0, and by default the error is logged but ignored. The value cannot be less than 0.
void setJMSExceptionReconnectAttempts(int jmsExceptionReconnectAttempts) throws javax.management.InvalidAttributeValueException
jmsExceptionReconnectAttempts
- the new JMSExceptionReconnectAttempts valuejavax.management.InvalidAttributeValueException
java.lang.String getNotificationProperties()
The comma-delimited list of key-value properties to pass to the JNDI InitialContext on construction,
in the form of xxKey=xxValue, xxKey=xxValue
.
The following are examples of keys:
java.naming.provider.url:
property for specifying configuration information for the service provider
to use. The value of the property should contain a URL string (For example: iiops://localhost:7002
).java.naming.factory.initial:
property for specifying the initial context factory to use. The value of
the property should be the fully qualified class name of the factory class that will create an initial
context (For example: weblogic.jndi.WLInitialContextFactory
).When setting the attribute, the syntax of its value is validated, and an
InvalidAttributeValueException
is thrown if the check fails.
void setNotificationProperties(java.lang.String notificationProperties) throws javax.management.InvalidAttributeValueException
notificationProperties
- the new NotificationProperties valuejavax.management.InvalidAttributeValueException
RealmMBean getRealm()
java.lang.String getName()
getName
in interface StandardInterface