BEAST
eu.baltrad.beast.security.mail.AdminMailer Class Reference

Implements the admin mailer. More...

Inheritance diagram for eu.baltrad.beast.security.mail.AdminMailer:
eu.baltrad.beast.security.mail.IAdminMailer

Public Member Functions

void setJavaMailSender (JavaMailSender sender)
 Sets the mail sender.
 
void sendKeyApprovalRequest (String to, String subject, String uri, String message, AuthorizationRequest request)
 Send a mail with a key approval request.
 
String getDefaultEncoding ()
 
void setDefaultEncoding (String defaultEncoding)
 
String getHost ()
 
void setHost (String host)
 
int getPort ()
 
void setPort (int port)
 
String getUsername ()
 
void setUsername (String username)
 
String getPassword ()
 
void setPassword (String password)
 
Map< String, String > getProperties ()
 
void setProperties (Map< String, String > properties)
 
String getFrom ()
 
void setFrom (String from)
 
boolean isEnabled ()
 
void setEnabled (boolean enabled)
 

Protected Member Functions

JavaMailSender getMailSender ()
 Creates a mail sender to be used.
 

Detailed Description

Implements the admin mailer.

Author
anders

Member Function Documentation

◆ getDefaultEncoding()

String eu.baltrad.beast.security.mail.AdminMailer.getDefaultEncoding ( )
inline
Returns
default encoding

◆ getFrom()

String eu.baltrad.beast.security.mail.AdminMailer.getFrom ( )
inline
Returns
from address

◆ getHost()

String eu.baltrad.beast.security.mail.AdminMailer.getHost ( )
inline
Returns
the mail server host address

◆ getMailSender()

JavaMailSender eu.baltrad.beast.security.mail.AdminMailer.getMailSender ( )
inlineprotected

Creates a mail sender to be used.

Returns
the mail sender

◆ getPassword()

String eu.baltrad.beast.security.mail.AdminMailer.getPassword ( )
inline
Returns
password on mail server

◆ getPort()

int eu.baltrad.beast.security.mail.AdminMailer.getPort ( )
inline
Returns
port of the mail server

◆ getProperties()

Map< String, String > eu.baltrad.beast.security.mail.AdminMailer.getProperties ( )
inline
Returns
properties used when establishing connection with mail server

◆ getUsername()

String eu.baltrad.beast.security.mail.AdminMailer.getUsername ( )
inline
Returns
username on mail server

◆ isEnabled()

boolean eu.baltrad.beast.security.mail.AdminMailer.isEnabled ( )
inline
Returns
the enabled

◆ sendKeyApprovalRequest()

void eu.baltrad.beast.security.mail.AdminMailer.sendKeyApprovalRequest ( String to,
String subject,
String uri,
String message,
AuthorizationRequest request )
inline

Send a mail with a key approval request.

Parameters
todestination email address
subjectthe subject of the email
messagean arbitrary message @request the actual request providing content in the email

Implements eu.baltrad.beast.security.mail.IAdminMailer.

◆ setDefaultEncoding()

void eu.baltrad.beast.security.mail.AdminMailer.setDefaultEncoding ( String defaultEncoding)
inline
Parameters
defaultEncodingthe default encoding

◆ setEnabled()

void eu.baltrad.beast.security.mail.AdminMailer.setEnabled ( boolean enabled)
inline
Parameters
enabledthe enabled to set

◆ setFrom()

void eu.baltrad.beast.security.mail.AdminMailer.setFrom ( String from)
inline
Parameters
fromaddress

◆ setHost()

void eu.baltrad.beast.security.mail.AdminMailer.setHost ( String host)
inline
Parameters
hostthe mail server host address

◆ setJavaMailSender()

void eu.baltrad.beast.security.mail.AdminMailer.setJavaMailSender ( JavaMailSender sender)
inline

Sets the mail sender.

Parameters
senderthe sender

◆ setPassword()

void eu.baltrad.beast.security.mail.AdminMailer.setPassword ( String password)
inline
Parameters
passwordon mail server

◆ setPort()

void eu.baltrad.beast.security.mail.AdminMailer.setPort ( int port)
inline
Parameters
portof the mail server

◆ setProperties()

void eu.baltrad.beast.security.mail.AdminMailer.setProperties ( Map< String, String > properties)
inline
Parameters
propertiesused when establishing connection with mail server

◆ setUsername()

void eu.baltrad.beast.security.mail.AdminMailer.setUsername ( String username)
inline
Parameters
usernameusername on mail server

The documentation for this class was generated from the following file: