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.configuration
Interface BridgeDestinationCommonMBean

All Superinterfaces:
ConfigurationMBean, DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, WebLogicMBean
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:

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
abstract  String getAdapterJNDIName()
          The JNDI name of the adapter used to communicate with the specified destination.
abstract  String getClasspath()
          Deprecated. - no longer support interoperability with WLS 5.1
abstract  String getUserName()
          The optional user name the adapter uses to access the bridge destination.
abstract  String getUserPassword()
          The user password that the adapter uses to access the bridge destination.
abstract  byte[] getUserPasswordEncrypted()
          The encrypted user password that the adapter uses to access the bridge destination.
abstract  void setAdapterJNDIName(String name)
          Sets the value of the AdapterJNDIName attribute.
abstract  void setClasspath(String classpath)
          Deprecated. - no longer support interoperability with WLS 5.1
abstract  void setUserName(String name)
          Sets the value of the UserName attribute.
abstract  void setUserPassword(String password)
          Encrypts the password and sets the value of the UserPassword attribute and the UserPasswordEncrypted attribute.
abstract  void setUserPasswordEncrypted(byte[] passwordEncrypted)
          Sets the encrypted value of the UserPassword attribute.

 

Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet

 

Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent

 

Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes

 

Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

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

 

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()

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()
Deprecated. - no longer support interoperability with WLS 5.1

The CLASSPATH of the bridge destination.

Returns:
The classpath value

setClasspath

void setClasspath(String classpath)
                  throws InvalidAttributeValueException
Deprecated. - no longer support interoperability with WLS 5.1

Sets the value of the Classpath attribute.

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

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