-
public final class LoginConfiguration
Configuration class to use for logging in with facebook
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
LoginConfiguration.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Set<String>
permissions
private final String
nonce
private final String
codeVerifier
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description final Set<String>
getPermissions()
The requested permissions for the login attempt. final String
getNonce()
he nonce that the configuration was created with. final String
getCodeVerifier()
PKCE code_verifier for getting the access_token and/or id_token -
-
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.
-
getCodeVerifier
final String getCodeVerifier()
PKCE code_verifier for getting the access_token and/or id_token
-
-
-
-