/** * Constructor using the context's default enroler. * * @param context * The context. * @param optional * Indicates if the authenticator is not required to succeed. * @see #Authenticator(Context, boolean, Enroler) */ public Authenticator(Context context, boolean optional) { this(context, optional, (context != null) ? context.getDefaultEnroler() : null); }