Android SDK Version


public final class LoginConfiguration
Configuration class to use for logging in with facebook
Nested Class Summary
Modifier and TypeClassDescription
public classLoginConfiguration.Companion
Field Summary
Modifier and TypeFieldDescription
private final Set<String>permissions
private final Stringnonce
private final StringcodeVerifier
Constructor Summary
ConstructorDescription
LoginConfiguration(Collection<String> permissions, String nonce)create a new configuration with the expected parameters.
LoginConfiguration(Collection<String> permissions)create a new configuration with the expected parameters.
LoginConfiguration(Collection<String> permissions, String nonce, String codeVerifier)create a new configuration with the expected parameters.
Method Summary
Modifier and TypeMethodDescription
final Set<String>getPermissions() The requested permissions for the login attempt.
final StringgetNonce() he nonce that the configuration was created with.
final StringgetCodeVerifier() PKCE code_verifier for getting the access_token and/or id_token
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

LoginConfiguration

LoginConfiguration(Collection<String> permissions, String nonce)
create a new configuration with the expected parameters.
Parameters:
permissions - the requested permissions for a login attempt.
nonce - an optional nonce to use for the login attempt.

LoginConfiguration

LoginConfiguration(Collection<String> permissions)
create a new configuration with the expected parameters.
Parameters:
permissions - the requested permissions for a login attempt.

LoginConfiguration

LoginConfiguration(Collection<String> permissions, String nonce, String codeVerifier)
create a new configuration with the expected parameters.
Parameters:
permissions - the requested permissions for a login attempt.
nonce - an optional nonce to use for the login attempt.
codeVerifier - a cryptographically random string using the characters A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, underscore, and tilde), between 43 and 128 characters long.
Method Detail

getPermissions

 final Set<String> getPermissions()
The requested permissions for the login attempt. Defaults to an empty set.

getNonce

 final StringgetNonce()
he nonce that the configuration was created with.

getCodeVerifier

 final StringgetCodeVerifier()
PKCE code_verifier for getting the access_token and/or id_token