Package com.google.auth
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
ServiceAccountSigner.SigningException
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAccount()
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 Detail
-
getAccount
java.lang.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
-
-