public static class AuthCredentials.ServiceAccountAuthCredentials extends AuthCredentials implements ServiceAccountSigner
AuthCredentials.AppEngineAuthCredentials, AuthCredentials.ApplicationDefaultAuthCredentials, AuthCredentials.NoAuthCredentials, AuthCredentials.ServiceAccountAuthCredentialsServiceAccountSigner.SigningException| Modifier and Type | Method and Description |
|---|---|
String |
account()
Returns the service account associated with the signer.
|
RestorableState<AuthCredentials> |
capture()
Captures the state of this object.
|
com.google.auth.oauth2.ServiceAccountCredentials |
credentials() |
PrivateKey |
privateKey()
Returns the private key associated with the service account credentials.
|
byte[] |
sign(byte[] toSign)
Signs the provided bytes using the private key associated with the service account.
|
createApplicationDefaults, createFor, createForAppEngine, createForJson, noAuthpublic com.google.auth.oauth2.ServiceAccountCredentials credentials()
credentials in class AuthCredentialspublic String account()
ServiceAccountSigneraccount in interface ServiceAccountSignerpublic PrivateKey privateKey()
public byte[] sign(byte[] toSign)
ServiceAccountSignersign in interface ServiceAccountSignertoSign - bytes to signpublic RestorableState<AuthCredentials> capture()
Restorablecapture in interface Restorable<AuthCredentials>RestorableState instance that contains the state for this object and can
restore it afterwards.Copyright © 2016 Google. All rights reserved.