Class CredentialsType

java.lang.Object
io.objectbox.sync.CredentialsType

public final class CredentialsType extends Object
Credentials types for login at a sync server.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Google Auth ID token
    static final int
    Used to indicate an uninitialized variable.
    static final int
    JSON Web Token (JWT): an access token that is used to access resources.
    static final int
    JSON Web Token (JWT): a token that is neither an ID, access, nor refresh token.
    static final int
    JSON Web Token (JWT): an ID token that typically provides identity information about the authenticated user.
    static final int
    JSON Web Token (JWT): a refresh token that is used to obtain a new access token.
    static final int
    No credentials required; do not use for public/production servers.
    static final int
    Use ObjectBox Admin users for Sync authentication.
    static final int
    Deprecated, replaced by SHARED_SECRET_SIPPED
    static final int
    Use shared secret to create a SipHash and make attacks harder than just copy&paste.
    static final int
    Generic credential type suitable for ObjectBox admin (and possibly others in the future)
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • Invalid

      public static final int Invalid
      Used to indicate an uninitialized variable. Should never be sent/received in a message.
      See Also:
    • 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:
    • SharedSecret

      public static final int SharedSecret
      Deprecated, replaced by SHARED_SECRET_SIPPED
      See Also:
    • GoogleAuth

      public static final int GoogleAuth
      Google Auth ID token
      See Also:
    • 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:
    • ObxAdminUser

      public static final int ObxAdminUser
      Use ObjectBox Admin users for Sync authentication.
      See Also:
    • UserPassword

      public static final int UserPassword
      Generic credential type suitable for ObjectBox admin (and possibly others in the future)
      See Also:
    • JwtId

      public static final int JwtId
      JSON Web Token (JWT): an ID token that typically provides identity information about the authenticated user.
      See Also:
    • JwtAccess

      public static final int JwtAccess
      JSON Web Token (JWT): an access token that is used to access resources.
      See Also:
    • JwtRefresh

      public static final int JwtRefresh
      JSON Web Token (JWT): a refresh token that is used to obtain a new access token.
      See Also:
    • JwtCustom

      public static final int JwtCustom
      JSON Web Token (JWT): a token that is neither an ID, access, nor refresh token.
      See Also: