Class ServiceAccount (2.22.2)

public final class ServiceAccount implements Serializable

A service account, with its specified scopes, authorized for this instance. See Also: Authenticating from Google Cloud Storage

Inheritance

Object > ServiceAccount

Implements

Serializable

Static Methods

of(String email)

public static ServiceAccount of(String email)

Returns a ServiceAccount object for the provided email.

Parameter
NameDescription
emailString
Returns
TypeDescription
ServiceAccount

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getEmail()

public String getEmail()

Returns the email address of the service account.

Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides