AuthenticatorFactory

AuthenticatorFactory

A factory to create instances of supported Authenticators.

Syntax


@interface CBLAuthenticator
class CBLAuthenticator
public class AuthenticatorFactory
public class AuthenticatorFactory
public class AuthenticatorFactory

Summary


Methods
static Authenticator
createBasicAuthenticator(String username, String password)
Creates an Authenticator that knows how to do Basic authentication.
static Authenticator
Creates an Authenticator that knows how to do Facebook authentication.
static Authenticator
createPersonaAuthenticator(String assertion, String email)
Creates an Authenticator that knows how to do Persona authentication.

Methods


static Authenticator createBasicAuthenticator(String username, String password)
Creates an Authenticator that knows how to do Basic authentication.

Parameters

username The username.
password The password.

Syntax

+(id<CBLAuthenticator>)basicAuthenticatorWithUsername:(NSString *)username password:(NSString *)password
class func basicAuthenticatorWithUsername(username: String!, password: String!) -> CBLAuthenticatorProtocol
public static Authenticator createBasicAuthenticator(String username, String password)
public static Authenticator createBasicAuthenticator(String username, String password)
public static IAuthenticator CreateBasicAuthenticator(String username, String password)
static Authenticator createFacebookAuthenticator(String token)
Creates an Authenticator that knows how to do Facebook authentication.

Parameters

token The Facebook access token.

Syntax

+(id<CBLAuthenticator>)facebookAuthenticatorWithToken:(NSString *)token
class func facebookAuthenticatorWithToken(token: String!) -> CBLAuthenticatorProtocol
public static Authenticator createFacebookAuthenticator(String token)
public static Authenticator createFacebookAuthenticator(String token)
public static IAuthenticator CreateFacebookAuthenticator(String token)
static Authenticator createPersonaAuthenticator(String assertion, String email)
Creates an Authenticator that knows how to do Persona authentication.

Parameters

assertion The Persona assertion.
email The Persona email.

Syntax

+(id<CBLAuthenticator>)personaAuthenticatorWithAssertion:(NSString *)assertion
class func personaAuthenticatorWithAssertion(assertion: String!) -> CBLAuthenticatorProtocol
public static Authenticator createPersonaAuthenticator(String assertion, String email)
public static Authenticator createPersonaAuthenticator(String assertion, String email)
public static IAuthenticator CreatePersonaAuthenticator(String assertion, String email)