Skip to main content
Package: com.coinbase.cdp.types

Method Details

getType

Returns: OAuth2ProviderType

getSub

Returns: String - The unique identifier for the end user that is captured in the sub claim of the JWT.

getEmail

Returns: Optional<String> - The email address of the end user contained within the user’s ID token, if available from third-party OAuth2 provider’s token exchange.

getName

Returns: Optional<String> - The full name of the end user if available from third-party OAuth2 provider’s token exchange.

getUsername

Returns: Optional<String> - The username of the end user if available from third-party OAuth2 provider’s token exchange.

equals

Overrides: [equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang") Parameters: other - Object Returns: boolean

getAdditionalProperties

Returns: Map<String,Object>

hashCode

Overrides: [hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang") Returns: int

toString

Overrides: [toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang") Returns: String

builder

Returns: OAuth2Authentication.TypeStage