public class

Credential

extends Object
implements KinveyRequestInitializer Serializable
java.lang.Object
   ↳ com.kinvey.java.auth.Credential

Summary

Public Methods
static Credential from(KinveyAuthResponse response)
Convenience method intended to shield calling code from having to deal with KinveyAuthResponse directly
static Credential from(User user)
String getAuthToken()
String getUserId()
void initialize(AbstractKinveyClientRequest<?> request)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.kinvey.java.core.KinveyRequestInitializer

Public Methods

public static Credential from (KinveyAuthResponse response)

Convenience method intended to shield calling code from having to deal with KinveyAuthResponse directly

Parameters
response a valid response from the Kinvey authentication
Returns
  • a newly constructed Credential object

public static Credential from (User user)

public String getAuthToken ()

public String getUserId ()

public void initialize (AbstractKinveyClientRequest<?> request)