@Component public class MailCredentialsProvider extends Object implements org.apache.http.client.CredentialsProvider, ICredentialsProvider
| Constructor and Description |
|---|
MailCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
javax.mail.Authenticator |
getAuthenticator()
Returns a Javamail Authenticator object for the current operation.
|
org.apache.http.auth.Credentials |
getCredentials()
Returns an Apache Credentials object for the current operation.
|
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope authscope) |
String |
getUsername()
Returns the username.
|
void |
initialize(javax.portlet.PortletRequest request,
MailStoreConfiguration config,
IAuthenticationService authService)
Initializes the credentials provider service.
|
void |
setCredentials(org.apache.http.auth.AuthScope authscope,
org.apache.http.auth.Credentials credentials) |
public void clear()
clear in interface org.apache.http.client.CredentialsProviderpublic org.apache.http.auth.Credentials getCredentials()
ICredentialsProvidergetCredentials in interface ICredentialsProviderpublic org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope authscope)
getCredentials in interface org.apache.http.client.CredentialsProviderpublic void setCredentials(org.apache.http.auth.AuthScope authscope,
org.apache.http.auth.Credentials credentials)
setCredentials in interface org.apache.http.client.CredentialsProviderpublic javax.mail.Authenticator getAuthenticator()
ICredentialsProvidergetAuthenticator in interface ICredentialsProviderpublic void initialize(javax.portlet.PortletRequest request,
MailStoreConfiguration config,
IAuthenticationService authService)
ICredentialsProviderinitialize in interface ICredentialsProviderrequest - Portlet requestconfig - Mail configurationauthService - Authentication servicepublic String getUsername()
ICredentialsProvidergetUsername in interface ICredentialsProviderCopyright © 2014 Jasig. All Rights Reserved.