Class MailServerCfgDefn
Mail Servers are used to define how to connect and authenticate to an external mail server.
-
Method Summary
Modifier and TypeMethodDescriptioncreateClientConfiguration
(ManagedObject<? extends MailServerCfgClient> impl) Creates a client configuration view of the provided managed object.createServerConfiguration
(ServerManagedObject<? extends MailServerCfg> impl) Creates a server configuration view of the provided server managed object.Get the "auth-password" property definition.Get the "auth-username" property definition.Get the "enabled" property definition.static MailServerCfgDefn
Get the Mail Server configuration definition singleton.Gets the server configuration class instance associated with this managed object definition.Get the "smtp-property" property definition.Get the "smtp-server" property definition.Get the "trust-manager-provider" property definition.Get the "use-ssl" property definition.Get the "use-start-tls" property definition.Methods inherited from class org.forgerock.opendj.config.AbstractManagedObjectDefinition
getAggregationPropertyDefinitions, getAllAggregationPropertyDefinitions, getAllChildren, getAllConstraints, getAllPropertyDefinitions, getAllRelationDefinitions, getAllReverseRelationDefinitions, getAllTags, getChild, getChildren, getConstraints, getDeprecated, getDescription, getDescription, getName, getParent, getPropertyDefinition, getPropertyDefinitions, getRelationDefinition, getRelationDefinitions, getReverseAggregationPropertyDefinitions, getReverseRelationDefinitions, getSynopsis, getSynopsis, getUserFriendlyName, getUserFriendlyName, getUserFriendlyPluralName, getUserFriendlyPluralName, hasChildren, hasOption, hasTag, initialize, isChildOf, isParentOf, isTop, registerConstraint, registerDeprecated, registerOption, registerPropertyDefinition, registerRelationDefinition, registerTag, resolveManagedObjectDefinition, toString, toString
-
Method Details
-
getInstance
Get the Mail Server configuration definition singleton.- Returns:
- Returns the Mail Server configuration definition singleton.
-
createClientConfiguration
public MailServerCfgClient createClientConfiguration(ManagedObject<? extends MailServerCfgClient> impl) Description copied from class:ManagedObjectDefinition
Creates a client configuration view of the provided managed object. Modifications made to the underlying managed object will be reflected in the client configuration view and vice versa.- Specified by:
createClientConfiguration
in classManagedObjectDefinition<MailServerCfgClient,
MailServerCfg> - Parameters:
impl
- The managed object.- Returns:
- Returns a client configuration view of the provided managed object.
-
createServerConfiguration
Description copied from class:ManagedObjectDefinition
Creates a server configuration view of the provided server managed object.- Specified by:
createServerConfiguration
in classManagedObjectDefinition<MailServerCfgClient,
MailServerCfg> - Parameters:
impl
- The server managed object.- Returns:
- Returns a server configuration view of the provided server managed object.
-
getServerConfigurationClass
Description copied from class:ManagedObjectDefinition
Gets the server configuration class instance associated with this managed object definition.- Specified by:
getServerConfigurationClass
in classManagedObjectDefinition<MailServerCfgClient,
MailServerCfg> - Returns:
- Returns the server configuration class instance associated with this managed object definition.
-
getAuthPasswordPropertyDefinition
Get the "auth-password" property definition.Specifies the password for authenticating to the SMTP server. You must also set the auth-name.
- Returns:
- Returns the "auth-password" property definition.
-
getAuthUsernamePropertyDefinition
Get the "auth-username" property definition.Specifies the username for authenticating to the SMTP server.
- Returns:
- Returns the "auth-username" property definition.
-
getEnabledPropertyDefinition
Get the "enabled" property definition.Indicates whether the Mail Server is enabled.
- Returns:
- Returns the "enabled" property definition.
-
getSmtpPropertyPropertyDefinition
Get the "smtp-property" property definition.Specifies additional options to pass when submitting messages.
Any supported property can be specified here. Refer to the documentation at https://javaee.github.io/javamail/docs/api/javax/mail/package-summary.html#properties for further information on related properties, their implications, and range values. Note these extra properties will be added after the normal properties are set for this Mail Server.
- Returns:
- Returns the "smtp-property" property definition.
-
getSmtpServerPropertyDefinition
Get the "smtp-server" property definition.Specifies the address (and optional port number) for a mail server that can be used to send email messages via SMTP.
It may be an IP address or resolvable hostname, optionally followed by a colon and a port number.
- Returns:
- Returns the "smtp-server" property definition.
-
getTrustManagerProviderPropertyDefinition
public AggregationPropertyDefinition<TrustManagerProviderCfgClient,TrustManagerProviderCfg> getTrustManagerProviderPropertyDefinition()Get the "trust-manager-provider" property definition.Specifies the name of the trust manager that should be used when negotiating SSL connections with remote mail servers.
- Returns:
- Returns the "trust-manager-provider" property definition.
-
getUseSslPropertyDefinition
Get the "use-ssl" property definition.Indicates whether the Mail Server should use SSL.
If enabled, the Mail Server will use SSL to encrypt communication with the clients.
- Returns:
- Returns the "use-ssl" property definition.
-
getUseStartTlsPropertyDefinition
Get the "use-start-tls" property definition.Indicates whether to use StartTLS.
If enabled, the Mail Server will use the StartTLS command after connecting to initiate secure communication over an otherwise insecure channel. Note that this is only allowed if the Mail Server is not configured to use SSL.
- Returns:
- Returns the "use-start-tls" property definition.
-