public interface MailSessionOverrideMBean extends ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method and Description |
---|---|
Properties |
getProperties()
The configuration options and user authentication data that this mail session
uses to interact with a mail server.
|
String |
getSessionPassword()
The decrypted JavaMail Session password attribute, for use only temporarily in-memory;
the value returned by this attribute should not be held in memory long term.
|
byte[] |
getSessionPasswordEncrypted()
The encrypted JavaMail Session password attribute, for use only temporarily in-memory;
the value returned by this attribute should not be held in memory long term.
|
String |
getSessionUsername()
The username to be used to create an authenticated JavaMail
Session, using a JavaMail
Authenticator instance. |
void |
setProperties(Properties props)
Sets the value of the properties attribute.
|
void |
setSessionPassword(String password)
Sets the password for the JavaMail session; this will
in turn call
MailSessionOverrideMBean.getSessionPasswordEncrypted()
to store the password in an encrypted form. |
void |
setSessionPasswordEncrypted(byte[] password)
Sets the password for the JavaMail session; this will
in turn call
MailSessionOverrideMBean.getSessionPasswordEncrypted()
to store the password in an encrypted form. |
void |
setSessionUsername(String user)
Sets the user name to be used for an authenticated JavaMail session.
|
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
Properties getProperties()
void setProperties(Properties props) throws InvalidAttributeValueException
props
- The new properties valueInvalidAttributeValueException
MailSessionOverrideMBean.getProperties()
String getSessionUsername()
Authenticator
instance.void setSessionUsername(String user)
user
- String getSessionPassword()
void setSessionPassword(String password)
MailSessionOverrideMBean.getSessionPasswordEncrypted()
to store the password in an encrypted form.password
- byte[] getSessionPasswordEncrypted()
void setSessionPasswordEncrypted(byte[] password)
MailSessionOverrideMBean.getSessionPasswordEncrypted()
to store the password in an encrypted form.password
-