public class

OAuth2SaslClientFactory

extends Object
implements SaslClientFactory
java.lang.Object
   ↳ com.google.code.oauth.OAuth2SaslClientFactory

Class Overview

A SaslClientFactory that returns instances of OAuth2SaslClient.

Only the "XOAUTH2" mechanism is supported. The callbackHandler is passed to the OAuth2SaslClient. Other parameters are ignored.

Summary

Constants
String OAUTH_TOKEN_PROP
Fields
private static final Logger logger
Public Constructors
OAuth2SaslClientFactory()
Public Methods
SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler callbackHandler)
String[] getMechanismNames(Map<String, ?> props)
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.security.sasl.SaslClientFactory

Constants

public static final String OAUTH_TOKEN_PROP

Constant Value: "mail.imaps.sasl.mechanisms.oauth2.oauthToken"

Fields

private static final Logger logger

Public Constructors

public OAuth2SaslClientFactory ()

Public Methods

public SaslClient createSaslClient (String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler callbackHandler)

Parameters
mechanisms
authorizationId
protocol
serverName
props
callbackHandler

public String[] getMechanismNames (Map<String, ?> props)

Parameters
props