Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.security
Interface RDBMSSecurityStoreMBean

All Superinterfaces:
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.


Method Summary
abstract  String getConnectionProperties()
          The JDBC driver specific connection parameters.
abstract  String getConnectionURL()
          The URL of the database to which to connect.
abstract  String getDriverName()
          The full package name of the JDBC driver class used to create the physical database connections in the connection pool.
abstract  int getJMSExceptionReconnectAttempts()
          The number of times to attempt to reconnect if the JMS system notifies Kodo of a serious connection error.
abstract  String getJMSTopic()
          The JMS topic to which the Kodo remote commit provider should publish notifications and subscribe for notifications sent from other JVMs.
abstract  String getJMSTopicConnectionFactory()
          The JNDI name of a javax.jms.TopicConnectionFactory instance to use for finding JMS topics.
abstract  String getJNDIPassword()
          The password to authenticate the user defined in the JNDIUsername attribute for Kodo notification.
abstract  byte[] getJNDIPasswordEncrypted()
          Returns the encrypted password to authenticate the user defined in the JNDIUsername attribute for Kodo notification.
abstract  String getJNDIUsername()
          The JNDI user name used for Kodo notification.
abstract  String getName()
          The name of this configuration.
abstract  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.
abstract  String getPassword()
          The password for the user specified in the Username attribute for connecting to the datastore.
abstract  byte[] getPasswordEncrypted()
          Returns the encrypted password to authenticate the user defined in the Username attribute when connecting to the data store.
abstract  RealmMBean getRealm()
          Returns the realm that contains this RDBMS security store.
abstract  String getUsername()
          The username to use when connecting to the datastore.
abstract  void setConnectionProperties(String connectionProperties)
          Sets the value of the ConnectionProperties attribute.
abstract  void setConnectionURL(String connectionURL)
          Sets the value of the ConnectionURL attribute.
abstract  void setDriverName(String driverName)
          Sets the value of the DriverName attribute.
abstract  void setJMSExceptionReconnectAttempts(int jmsExceptionReconnectAttempts)
          Sets the value of the JMSExceptionReconnectAttempts attribute.
abstract  void setJMSTopic(String jmsTopic)
          Sets the value of the JMSTopic attribute.
abstract  void setJMSTopicConnectionFactory(String jmsTopicConnectionFactory)
          Sets the value of the JMSTopicConnectionFactory attribute.
abstract  void setJNDIPassword(String password)
          Sets the value of the JNDIPassword attribute.
abstract  void setJNDIPasswordEncrypted(byte[] bytes)
          Encrypts the JNDI password and sets the value of the JNDIPasswordEncrypted attribute.
abstract  void setJNDIUsername(String username)
          Sets the value of the JNDI Username attribute.
abstract  void setNotificationProperties(String notificationProperties)
          Sets the value of the NotificationProperties attribute.
abstract  void setPassword(String password)
          Sets the value of the Password attribute.
abstract  void setPasswordEncrypted(byte[] bytes)
          Encrypts the user password and sets the value of the PasswordEncrypted attribute.
abstract  void setUsername(String username)
          Sets the value of the Username attribute.

 

Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener

 

Method Detail

getUsername

String getUsername()
The username to use when connecting to the datastore.
Returns:
the value of the Username attribute

setUsername

void setUsername(String username)
                 throws 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.

Parameters:
username - the new Username value
Throws:
InvalidAttributeValueException

getPassword

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:

When you set the value of this attribute, WebLogic Server does the following:

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.

Returns:
the value of the Password attribute
See Also:
RDBMSSecurityStoreMBean.getPasswordEncrypted()

setPassword

void setPassword(String password)
                 throws InvalidAttributeValueException
Sets the value of the Password attribute.
Parameters:
password - the new Password value
Throws:
InvalidAttributeValueException
See Also:
RDBMSSecurityStoreMBean.getPassword(), RDBMSSecurityStoreMBean.setPasswordEncrypted(byte[])

getPasswordEncrypted

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.

Returns:
the PasswordEncrypted value as an encrypted byte array

setPasswordEncrypted

void setPasswordEncrypted(byte[] bytes)
                          throws InvalidAttributeValueException
Encrypts the user password and sets the value of the PasswordEncrypted attribute.
Parameters:
bytes - the new password value as a byte array
Throws:
InvalidAttributeValueException
See Also:
RDBMSSecurityStoreMBean.getPasswordEncrypted()

getJNDIUsername

String getJNDIUsername()
The JNDI user name used for Kodo notification.
Returns:
the value of the JNDIUsername attribute

setJNDIUsername

void setJNDIUsername(String username)
                     throws InvalidAttributeValueException
Sets the value of the JNDI Username attribute.
Parameters:
username - the new JNDIUsername value
Throws:
InvalidAttributeValueException

getJNDIPassword

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:

When you set the value of this attribute, WebLogic Server does the following:

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.

Returns:
the value of the Password attribute
See Also:
RDBMSSecurityStoreMBean.getJNDIPasswordEncrypted()

setJNDIPassword

void setJNDIPassword(String password)
                     throws InvalidAttributeValueException
Sets the value of the JNDIPassword attribute.
Parameters:
password - the new JNDIPassword value
Throws:
InvalidAttributeValueException
See Also:
RDBMSSecurityStoreMBean.getJNDIPassword(), RDBMSSecurityStoreMBean.setJNDIPasswordEncrypted(byte[])

getJNDIPasswordEncrypted

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.

Returns:
the JNDIPasswordEncrypted value as an encrypted byte array

setJNDIPasswordEncrypted

void setJNDIPasswordEncrypted(byte[] bytes)
                              throws InvalidAttributeValueException
Encrypts the JNDI password and sets the value of the JNDIPasswordEncrypted attribute.
Parameters:
bytes - the new password value as a byte array
Throws:
InvalidAttributeValueException
See Also:
RDBMSSecurityStoreMBean.getPasswordEncrypted()

getConnectionURL

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.

Returns:
the value of the ConnectionURL attribute

setConnectionURL

void setConnectionURL(String connectionURL)
                      throws 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.

Parameters:
connectionURL - the new ConnectionURL value
Throws:
InvalidAttributeValueException

getDriverName

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:

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.

Returns:
the value of the DriverName attribute

setDriverName

void setDriverName(String driverName)
                   throws 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.

Parameters:
driverName - the new DriverName value
Throws:
InvalidAttributeValueException

getConnectionProperties

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.

Returns:
the value of the ConnectionProperties attribute

setConnectionProperties

void setConnectionProperties(String connectionProperties)
                             throws InvalidAttributeValueException
Sets the value of the ConnectionProperties attribute.
Parameters:
connectionProperties - the new ConnectionProperties value
Throws:
InvalidAttributeValueException

getJMSTopic

String getJMSTopic()
The JMS topic to which the Kodo remote commit provider should publish notifications and subscribe for notifications sent from other JVMs. This setting varies depending on the application server in use.
Returns:
the value of the JMSTopic attribute

setJMSTopic

void setJMSTopic(String jmsTopic)
                 throws InvalidAttributeValueException
Sets the value of the JMSTopic attribute.
Parameters:
jmsTopic - the new JMSTopic value
Throws:
InvalidAttributeValueException

getJMSTopicConnectionFactory

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.

Returns:
the value of the JMSTopicConnectionFactory attribute

setJMSTopicConnectionFactory

void setJMSTopicConnectionFactory(String jmsTopicConnectionFactory)
                                  throws InvalidAttributeValueException
Sets the value of the JMSTopicConnectionFactory attribute.
Parameters:
jmsTopicConnectionFactory - the new JMSTopicConnectionFactory value
Throws:
InvalidAttributeValueException

getJMSExceptionReconnectAttempts

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.

Returns:
the value of the JMSExceptionReconnectAttempts attribute

setJMSExceptionReconnectAttempts

void setJMSExceptionReconnectAttempts(int jmsExceptionReconnectAttempts)
                                      throws InvalidAttributeValueException
Sets the value of the JMSExceptionReconnectAttempts attribute.
Parameters:
jmsExceptionReconnectAttempts - the new JMSExceptionReconnectAttempts value
Throws:
InvalidAttributeValueException

getNotificationProperties

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:

When setting the attribute, the syntax of its value is validated, and an InvalidAttributeValueException is thrown if the check fails.

Returns:
the value of NotificationProperties attribute

setNotificationProperties

void setNotificationProperties(String notificationProperties)
                               throws InvalidAttributeValueException
Sets the value of the NotificationProperties attribute.
Parameters:
notificationProperties - the new NotificationProperties value
Throws:
InvalidAttributeValueException

getRealm

RealmMBean getRealm()
Returns the realm that contains this RDBMS security store. Returns null if this RDBMS security store is not contained by a realm.
Returns:
the Realm that contains this MBean

getName

String getName()
The name of this configuration.
Specified by:
getName in interface StandardInterface
Returns:
the value of the Name attribute

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09