Send feedback
Class MutableCredentials (2.38.0)
Stay organized with collections
Save and categorize content based on your preferences.
2.38.0 (latest)
2.35.4
2.34.0
2.33.2
2.32.3
2.31.2
2.30.4
2.28.0
2.27.1
2.26.1
2.25.1
2.24.1
2.23.0
2.22.1
2.21.0
2.20.2
2.19.3
2.18.1
2.17.0
2.16.1
2.15.5
2.14.6
2.13.4
2.11.4
2.10.0
2.9.16
2.8.0
2.7.12
2.6.4
2.5.11
public class MutableCredentials extends Credentials
Inherited Members
com.google.auth.Credentials.blockingGetToCallback(java.net.URI,com.google.auth.RequestMetadataCallback)
com.google.auth.Credentials.getAuthenticationType()
com.google.auth.Credentials.getMetricsCredentialType()
com.google.auth.Credentials.getRequestMetadata()
com.google.auth.Credentials.getRequestMetadata(java.net.URI)
com.google.auth.Credentials.getRequestMetadata(java.net.URI,java.util.concurrent.Executor,com.google.auth.RequestMetadataCallback)
com.google.auth.Credentials.getUniverseDomain()
com.google.auth.Credentials.hasRequestMetadata()
com.google.auth.Credentials.hasRequestMetadataOnly()
com.google.auth.Credentials.refresh()
Constructors
MutableCredentials(ServiceAccountCredentials arg0)
public MutableCredentials ( ServiceAccountCredentials arg0 )
Parameter
Name
Description
arg0
com.google.auth.oauth2.ServiceAccountCredentials
MutableCredentials(ServiceAccountCredentials arg0, Set<String> arg1)
public MutableCredentials ( ServiceAccountCredentials arg0 , Set<String> arg1 )
Parameters
Name
Description
arg0
com.google.auth.oauth2.ServiceAccountCredentials
arg1
Set <String >
Methods
getAuthenticationType()
public String getAuthenticationType ()
Returns
Type
Description
String
Overrides
com.google.auth.Credentials.getAuthenticationType()
getMetricsCredentialType()
public CredentialTypeForMetrics getMetricsCredentialType ()
Returns
Type
Description
com.google.auth.CredentialTypeForMetrics
Overrides
com.google.auth.Credentials.getMetricsCredentialType()
public Map<String , List<String> > getRequestMetadata ( URI arg0 )
Parameter
Name
Description
arg0
URI
Overrides
com.google.auth.Credentials.getRequestMetadata(java.net.URI)
public void getRequestMetadata ( URI arg0 , Executor arg1 , RequestMetadataCallback arg2 )
Parameters
Name
Description
arg0
URI
arg1
Executor
arg2
com.google.auth.RequestMetadataCallback
Overrides
com.google.auth.Credentials.getRequestMetadata(java.net.URI,java.util.concurrent.Executor,com.google.auth.RequestMetadataCallback)
getUniverseDomain()
public String getUniverseDomain ()
Returns
Type
Description
String
Overrides
com.google.auth.Credentials.getUniverseDomain()
public boolean hasRequestMetadata ()
Overrides
com.google.auth.Credentials.hasRequestMetadata()
public boolean hasRequestMetadataOnly ()
Overrides
com.google.auth.Credentials.hasRequestMetadataOnly()
refresh()
Overrides
com.google.auth.Credentials.refresh()
updateCredentials(ServiceAccountCredentials arg0)
public void updateCredentials ( ServiceAccountCredentials arg0 )
Parameter
Name
Description
arg0
com.google.auth.oauth2.ServiceAccountCredentials
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-26 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-26 UTC."],[],[]]