# com.bea.p13n.mbeans
CredentialMBean Interface

public interface CredentialMBean
extends `ServiceConfigurationMBean`

The MBean that provides a store for a username with a credential that is encrypted on the file system, but is decryptable so it can be passed around as plain text by the services that use it. For example, you may want to bind to an external LDAP server using a username and plain-text password. The name of this MBean is used by the service that uses it to find the username/credential of interest.

All Superinterfaces
  `ConfigurationMBean`, `DynamicMBean`, `MBeanRegistration`, `NotificationBroadcaster`, `ServiceConfigurationMBean`, `WebLogicMBean`

## Field Summary

Fields from interface weblogic.management.configuration`.`ConfigurationMBean``
`CACHING_STUB_SVUID, DEFAULT_EMPTY_BYTE_ARRAY`

## Method Summary

`public byte[]` | `getCredentialEncrypted`() Get the credential
`public `String`` | `getUsername`() Get the username
`public void` | `setCredentialEncrypted`(byte[] credentialBytes) Set the encrypted credential.
`public void` | `setUsername`(`String` username) Set the username

Methods from interface `weblogic.management.configuration.`ConfigurationMBean``
`freezeCurrentValue, getAttributeStringValue, getComments, getNotes, getSetFields, getXml, getXmlConverter, isDefaultedMBean, isPersistenceEnabled, preDeregister, registerConfigMBean, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, touch, unRegisterConfigMBean`

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

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

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

Methods from interface `com.bea.p13n.management.`ServiceConfigurationMBean``
``

Methods from interface `weblogic.management.`WebLogicMBean``
`getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent`

## Method Detail

### getCredentialEncrypted() Method

    public byte[] getCredentialEncrypted()

Get the credential

#### Returns

the credential

### getUsername() Method

    public String getUsername()

Get the username

#### Returns

the username

### setCredentialEncrypted(byte[]) Method

    public void setCredentialEncrypted(byte[] credentialBytes)

Set the encrypted credential.

#### Parameters

credentialBytes
  The encrypted credential

### setUsername(String) Method

    public void setUsername(String username)

Set the username

#### Parameters

username
  The username