Package io.objectbox.sync
Class CredentialsType
- java.lang.Object
-
- io.objectbox.sync.CredentialsType
-
public final class CredentialsType extends java.lang.ObjectCredentials types for login at a sync server.
-
-
Field Summary
Fields Modifier and Type Field Description static intGoogleAuthGoogle Auth ID tokenstatic intInvalidUsed to indicate an uninitialized variable.static intJwtAccessJSON Web Token (JWT): an access token that is used to access resources.static intJwtCustomJSON Web Token (JWT): a token that is neither an ID, access, nor refresh token.static intJwtIdJSON Web Token (JWT): an ID token that typically provides identity information about the authenticated user.static intJwtRefreshJSON Web Token (JWT): a refresh token that is used to obtain a new access token.static intNoneNo credentials required; do not use for public/production servers.static intObxAdminUserUse ObjectBox Admin users for Sync authentication.static intSharedSecretDeprecated, replaced by SHARED_SECRET_SIPPEDstatic intSharedSecretSippedUse shared secret to create a SipHash and make attacks harder than just copy&paste.static intUserPasswordGeneric credential type suitable for ObjectBox admin (and possibly others in the future)
-
Constructor Summary
Constructors Modifier Constructor Description privateCredentialsType()
-
-
-
Field Detail
-
Invalid
public static final int Invalid
Used to indicate an uninitialized variable. Should never be sent/received in a message.- See Also:
- Constant Field Values
-
None
public static final int None
No credentials required; do not use for public/production servers. This is useful for testing and during development.- See Also:
- Constant Field Values
-
SharedSecret
public static final int SharedSecret
Deprecated, replaced by SHARED_SECRET_SIPPED- See Also:
- Constant Field Values
-
GoogleAuth
public static final int GoogleAuth
Google Auth ID token- See Also:
- Constant Field Values
-
SharedSecretSipped
public static final int SharedSecretSipped
Use shared secret to create a SipHash and make attacks harder than just copy&paste. (At some point we may want to switch to crypto & challenge/response.)- See Also:
- Constant Field Values
-
ObxAdminUser
public static final int ObxAdminUser
Use ObjectBox Admin users for Sync authentication.- See Also:
- Constant Field Values
-
UserPassword
public static final int UserPassword
Generic credential type suitable for ObjectBox admin (and possibly others in the future)- See Also:
- Constant Field Values
-
JwtId
public static final int JwtId
JSON Web Token (JWT): an ID token that typically provides identity information about the authenticated user.- See Also:
- Constant Field Values
-
JwtAccess
public static final int JwtAccess
JSON Web Token (JWT): an access token that is used to access resources.- See Also:
- Constant Field Values
-
JwtRefresh
public static final int JwtRefresh
JSON Web Token (JWT): a refresh token that is used to obtain a new access token.- See Also:
- Constant Field Values
-
JwtCustom
public static final int JwtCustom
JSON Web Token (JWT): a token that is neither an ID, access, nor refresh token.- See Also:
- Constant Field Values
-
-