Oracle Fusion Middleware
Oracle WebLogic Server MBean Javadoc
12c Release 1 (12.1.1)

Part Number E24395-02

weblogic.management.configuration
Interface BridgeDestinationCommonMBean

All Superinterfaces:
ConfigurationMBean
All Known Subinterfaces:
BridgeDestinationMBean, JMSBridgeDestinationMBean

public interface BridgeDestinationCommonMBean
extends ConfigurationMBean

This MBean represents a bridge destination for a messaging bridge instance. Each messaging bridge instance consists of the following destination types:

Deprecation of MBeanHome and Type-Safe Interfaces

This is a type-safe interface for a WebLogic Server MBean, which you can import into your client classes and access through weblogic.management.MBeanHome. As of 9.0, the MBeanHome interface and all type-safe interfaces for WebLogic Server MBeans are deprecated. Instead, client classes that interact with WebLogic Server MBeans should use standard JMX design patterns in which clients use the javax.management.MBeanServerConnection interface to discover MBeans, attributes, and attribute types at runtime.

Since:
7.0.0.0

Field Summary
static String JMS_XA_ADAPTER_JNDI
           
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 String getAdapterJNDIName()
          The JNDI name of the adapter used to communicate with the specified destination.
 String getClasspath()
          The CLASSPATH of the bridge destination.
 String getUserName()
          The optional user name the adapter uses to access the bridge destination.
 String getUserPassword()
          The user password that the adapter uses to access the bridge destination.
 byte[] getUserPasswordEncrypted()
          The encrypted user password that the adapter uses to access the bridge destination.
 void setAdapterJNDIName(String name)
          Sets the value of the AdapterJNDIName attribute.
 void setClasspath(String classpath)
          Sets the value of the Classpath attribute.
 void setUserName(String name)
          Sets the value of the UserName attribute.
 void setUserPassword(String password)
          Encrypts the password and sets the value of the UserPassword attribute and the UserPasswordEncrypted attribute.
 void setUserPasswordEncrypted(byte[] passwordEncrypted)
          Sets the encrypted value of the UserPassword attribute.
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
 

Field Detail

JMS_XA_ADAPTER_JNDI

static final String JMS_XA_ADAPTER_JNDI
See Also:
Constant Field Values
Method Detail

getAdapterJNDIName

String getAdapterJNDIName()

The JNDI name of the adapter used to communicate with the specified destination.

This name is specified in the adapter's deployment descriptor file and is used by the WebLogic Server Connector container to bind the adapter in WebLogic Server JNDI.

Returns:
The adapterJNDIName value

setAdapterJNDIName

void setAdapterJNDIName(String name)
                        throws InvalidAttributeValueException

Sets the value of the AdapterJNDIName attribute.

Parameters:
name - The new adapterJNDIName value
Throws:
InvalidAttributeValueException
See Also:
BridgeDestinationCommonMBean.getAdapterJNDIName()
This method can NOT set a null value.
This method can NOT set a value of zero length.
Default Value:
BridgeDestinationCommonMBean.JMS_XA_ADAPTER_JNDI

getUserName

String getUserName()

The optional user name the adapter uses to access the bridge destination.

All operations on the specified destination are done using this user name and the corresponding password. Therefore, the User Name/Password for the source and target destinations must have permission to the access the underlying destinations in order for the messaging bridge to work.

Returns:
The userName value

setUserName

void setUserName(String name)
                 throws InvalidAttributeValueException

Sets the value of the UserName attribute.

Parameters:
name - The new userName value
Throws:
InvalidAttributeValueException
See Also:
BridgeDestinationCommonMBean.getUserName()

getUserPassword

String getUserPassword()

The user password that the adapter uses to access the bridge destination.

As of 8.1 sp4, when you get the value of this attribute, WebLogic Server does the following:

  1. Retrieves the value of the UserPasswordEncrypted attribute.
  2. Decrypts the value and returns the unencrypted password as a String.

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

  1. Encrypts the value.
  2. Sets the value of the UserPasswordEncrypted attribute to the encrypted value.

Using this attribute (UserPassword) 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 UserPasswordEncrypted.

Returns:
The userPassword value
See Also:
BridgeDestinationCommonMBean.getUserPasswordEncrypted()

setUserPassword

void setUserPassword(String password)
                     throws InvalidAttributeValueException

Encrypts the password and sets the value of the UserPassword attribute and the UserPasswordEncrypted attribute.

Parameters:
password - The new userPassword value
Throws:
InvalidAttributeValueException
See Also:
BridgeDestinationCommonMBean.getUserPassword(), BridgeDestinationCommonMBean.getUserPasswordEncrypted()

getUserPasswordEncrypted

byte[] getUserPasswordEncrypted()

The encrypted user password that the adapter uses to access the bridge destination.

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 UserPasswordEncrypted value as an encrypted byte array

setUserPasswordEncrypted

void setUserPasswordEncrypted(byte[] passwordEncrypted)

Sets the encrypted value of the UserPassword attribute.

Parameters:
passwordEncrypted - The new encrypted value
See Also:
BridgeDestinationCommonMBean.getUserPasswordEncrypted()

getClasspath

String getClasspath()

The CLASSPATH of the bridge destination.

Returns:
The classpath value

setClasspath

void setClasspath(String classpath)
                  throws InvalidAttributeValueException

Sets the value of the Classpath attribute.

Parameters:
classpath - The new classpath value
Throws:
InvalidAttributeValueException
See Also:
BridgeDestinationCommonMBean.getClasspath()

Copyright 1996, 2011, 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
Oracle WebLogic Server MBean Javadoc
12c Release 1 (12.1.1)

Part Number E24395-02