Interface ServiceAccountSigner

All Known Implementing Classes:
AppEngineCredentials, ComputeEngineCredentials, ImpersonatedCredentials, ServiceAccountCredentials, ServiceAccountJwtAccessCredentials

public interface ServiceAccountSigner
Interface for a service account signer. A signer for a service account is capable of signing bytes using the private key associated with its service account.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the service account associated with the signer.
    byte[]
    sign(byte[] toSign)
    Signs the provided bytes using the private key associated with the service account.
  • Method Details

    • getAccount

      String getAccount()
      Returns the service account associated with the signer.
      Returns:
      The service account associated with the signer.
    • sign

      byte[] sign(byte[] toSign)
      Signs the provided bytes using the private key associated with the service account.
      Parameters:
      toSign - bytes to sign
      Returns:
      signed bytes
      Throws:
      ServiceAccountSigner.SigningException - if the attempt to sign the provided bytes failed