|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MailSessionMBean
Facilitates using the JavaMail APIs, which provide applications and other Java EE modules with access to Internet Message Access Protocol (IMAP)- and Simple Mail Transfer Protocol (SMTP)-capable mail servers on your network or the Internet.
In the reference implementation of JavaMail, applications must instantiate
javax.mail.Session
objects, which designate mail hosts, transport and
store protocols, and a default mail user for connecting to a mail server. In WebLogic Server,
you create a mail session, which configures a javax.mail.Session
object and
registers it in the WebLogic Server JNDI tree. Applications access the mail session
through JNDI instead of instantiating their own javax.mail.Session object.
Field Summary |
---|
Fields inherited from interface weblogic.management.configuration.DeploymentMBean |
---|
DEFAULT_ORDER, MAX_ORDER, MIN_ORDER |
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
---|---|
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 as set with setSessionPassword() ,
setSessionPasswordEncrypted(byte[] bytes) . |
String |
getSessionUsername()
Returns the username to be used to create an authenticated JavaMail Session, using a JavaMail Authenticator instance; if this is
not set, it will be assumed that the Session is not to be authenticated. |
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 MailSessionMBean.getSessionPasswordEncrypted()
to store the password in an encrypted form. |
void |
setSessionPasswordEncrypted(byte[] passwordEncrypted)
Used to store the encrypted password value for an authenticated JavaMail session in the domain configuration. |
void |
setSessionUsername(String user)
Sets the user name to be used for an authenticated JavaMail session |
Methods inherited from interface weblogic.management.configuration.RMCFactoryMBean |
---|
getJNDIName, setJNDIName |
Methods inherited from interface weblogic.management.configuration.DeploymentMBean |
---|
addTarget, getDeploymentOrder, getTargets, removeTarget, setDeploymentOrder, setTargets |
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 |
Method Detail |
---|
Properties getProperties()
The configuration options and user authentication data that this mail session uses to interact with a mail server. Each property that you specify overrides the default property value as defined by the JavaMail API Design Specification.
Include only the properties defined by the JavaMail API Design Specification.
If you do not specify any properties, this mail session will use the JavaMail default property values.
Express each property as a name=value
pair. Separate
multiple properties with a semicolon (;
).
void setProperties(Properties props) throws InvalidAttributeValueException
Sets the value of the Properties attribute.
props
- The new properties value
InvalidAttributeValueException
MailSessionMBean.getProperties()
String getSessionUsername()
Returns the username to be used to create an authenticated JavaMail
Session, using a JavaMail Authenticator
instance; if this is
not set, it will be assumed that the Session is not to be authenticated.
void setSessionUsername(String user)
Sets the user name to be used for an authenticated JavaMail session
user
- 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.
The value is stored in an encrypted form in the descriptor file and when displayed in an administration console.
void setSessionPassword(String password)
Sets the password for the JavaMail session; this will
in turn call MailSessionMBean.getSessionPasswordEncrypted()
to store the password in an encrypted form.
password
- byte[] getSessionPasswordEncrypted()
The encrypted JavaMail Session password as set with setSessionPassword()
,
setSessionPasswordEncrypted(byte[] bytes)
.
void setSessionPasswordEncrypted(byte[] passwordEncrypted)
passwordEncrypted
-
|
Copyright 1996, 2014, 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.1.3) Part Number E41849-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |