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 JwtAccess
      JSON Web Token (JWT): an access token that is used to access resources.
      static int JwtCustom
      JSON Web Token (JWT): a token that is neither an ID, access, nor refresh token.
      static int JwtId
      JSON Web Token (JWT): an ID token that typically provides identity information about the authenticated user.
      static int JwtRefresh
      JSON Web Token (JWT): a refresh token that is used to obtain a new access token.
      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)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CredentialsType()  
    • 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
      • 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
    • Constructor Detail

      • CredentialsType

        private CredentialsType()