Class ServiceAccount

java.lang.Object
com.google.cloud.storage.ServiceAccount
All Implemented Interfaces:
Serializable

public final class ServiceAccount extends Object implements Serializable
A service account, with its specified scopes, authorized for this instance.
See Also:
  • Method Details

    • getEmail

      public String getEmail()
      Returns the email address of the service account.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • of

      public static ServiceAccount of(String email)
      Returns a ServiceAccount object for the provided email.