© 2004 BEA Systems, Inc.

com.bea.p13n.mbeans
Interface CredentialMBean

All Superinterfaces:
ConfigurationMBean, javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, ServiceConfigurationMBean, WebLogicMBean

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.


Field Summary
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
CACHING_STUB_SVUID, DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 byte[] getCredentialEncrypted()
          Get the credential
 String getUsername()
          Get the username
 void setCredentialEncrypted(byte[] credentialBytes)
          Set the encrypted credential.
 void setUsername(String username)
          Set the username
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getAttributeStringValue, getComments, getNotes, getSetFields, getXmlConverter, isDefaultedMBean, isPersistenceEnabled, preDeregister, registerConfigMBean, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, touch, unRegisterConfigMBean
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

getCredentialEncrypted

public byte[] getCredentialEncrypted()
Get the credential

Returns:
the credential

getUsername

public String getUsername()
Get the username

Returns:
the username

setCredentialEncrypted

public void setCredentialEncrypted(byte[] credentialBytes)
Set the encrypted credential.

MBean Attribute is encrypted

setUsername

public void setUsername(String username)
Set the username

Parameters:
username - The username

© 2004 BEA Systems, Inc.

Copyright © 2004 BEA Systems, Inc. All Rights Reserved