Class CredentialsType


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

      Fields 
      Modifier and Type Field Description
      static int GoogleAuth
      Google Auth ID token
      static int Invalid
      Used to indicate an uninitialized variable.
      static int None
      No credentials required; do not use for public/production servers.
      static int ObxAdminUser
      Use ObjectBox Admin users for Sync authentication.
      static int SharedSecret
      Deprecated, replaced by SHARED_SECRET_SIPPED
      static int SharedSecretSipped
      Use shared secret to create a SipHash and make attacks harder than just copy&paste.
      static int UserPassword
      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 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
      • 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