|
||||||||||
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 | |
---|---|
javax.mail.Session |
getAuthenticatedSession(javax.mail.Session session,
java.lang.String host)
Deprecated. Authenticates an javax.mail.Session. |
javax.mail.Session |
getAuthenticatedSession(javax.mail.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 Credential
init
in interface UserPasswordCredential
config
- 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 Credential
getSecretType
in interface UserPasswordCredential
CredentialVaultService
javax.mail.Session getAuthenticatedSession(javax.mail.Session session, java.lang.String host) throws javax.mail.MessagingException
session
- The session to authenticate.host
- The mail server host name.
javax.mail.MessagingException
- thrown if javax.mail.session.getTransport().connect() fails.javax.mail.Session getAuthenticatedSession(javax.mail.Session session, java.lang.String host, int port) throws javax.mail.MessagingException
session
- The session to authenticate.host
- The mail server host name.port
- The mail server port number.
javax.mail.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 |