Skip to content

Commit

Permalink
Add serialVersionUID fields to classes implementing ExternalAccountCr…
Browse files Browse the repository at this point in the history
…edentials
  • Loading branch information
jmahonin committed Feb 16, 2023
1 parent bc2d63b commit 5036d48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oauth2_http/java/com/google/auth/oauth2/AwsCredentials.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public class AwsCredentials extends ExternalAccountCredentials {
static final String AWS_IMDSV2_SESSION_TOKEN_HEADER = "x-aws-ec2-metadata-token";
static final String AWS_IMDSV2_SESSION_TOKEN_TTL_HEADER = "x-aws-ec2-metadata-token-ttl-seconds";
static final String AWS_IMDSV2_SESSION_TOKEN_TTL = "300";
private static final long serialVersionUID = -3670131891574618105L;

/**
* The AWS credential source. Stores data required to retrieve the AWS credential from the AWS
Expand All @@ -81,6 +82,7 @@ public class AwsCredentials extends ExternalAccountCredentials {
static class AwsCredentialSource extends CredentialSource {

private static final String IMDSV2_SESSION_TOKEN_URL_FIELD_NAME = "imdsv2_session_token_url";
private static final long serialVersionUID = -4180558200808134436L;

private final String regionUrl;
private final String url;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@
*/
public class IdentityPoolCredentials extends ExternalAccountCredentials {

private static final long serialVersionUID = 2471046175477275881L;

/**
* The IdentityPool credential source. Dictates the retrieval method of the external credential,
* which can either be through a metadata server or a local file.
*/
static class IdentityPoolCredentialSource extends ExternalAccountCredentials.CredentialSource {

private static final long serialVersionUID = -745855247050085694L;

enum IdentityPoolCredentialSourceType {
FILE,
URL
Expand Down

0 comments on commit 5036d48

Please sign in to comment.