|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JavaMailCredential
Credential for authenticating at the back-end the javax.mail API. To be used in following way:
UserPasswordCredential)
| Field Summary |
|---|
| Fields inherited from interface com.ibm.portal.portlet.service.credentialvault.credentials.Credential |
|---|
KEY_CREDENTIAL_SECRET |
| Method Summary | |
|---|---|
Session |
getAuthenticatedSession(Session session,
java.lang.String host)
Deprecated. Authenticates an javax.mail.Session. |
Session |
getAuthenticatedSession(Session session,
java.lang.String host,
int port)
Deprecated. Authenticates an javax.mail.Session. |
int |
getSecretType()
Deprecated. Returns the credential's Secret Type in terms of the constants declared in the Credential Vault Portlet Service. Should be overwritten by any child class that "overwrites" the secret attribute. |
void |
init(java.util.Map<java.lang.String,java.lang.Object> config)
Deprecated. Initializes a new JavaMailCredential. |
| Methods inherited from interface com.ibm.portal.portlet.service.credentialvault.credentials.ActiveCredential |
|---|
isActive |
| Method Detail |
|---|
void init(java.util.Map<java.lang.String,java.lang.Object> config)
throws CredentialVaultException
init in interface Credentialinit in interface UserPasswordCredentialconfig - The configuration needed to initialize this credential:
CredentialVaultException - If any mandatory parameter is missing or has a wrong object type as value.int getSecretType()
Credential
getSecretType in interface CredentialgetSecretType in interface UserPasswordCredentialCredentialVaultService
Session getAuthenticatedSession(Session session,
java.lang.String host)
throws MessagingException
session - The session to authenticate.host - The mail server host name.
MessagingException - thrown if javax.mail.session.getTransport().connect() fails.
Session getAuthenticatedSession(Session session,
java.lang.String host,
int port)
throws MessagingException
session - The session to authenticate.host - The mail server host name.port - The mail server port number.
MessagingException - thrown if javax.mail.session.getTransport().connect() fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||