Skip to content

Commit 5633cc1

Browse files
committed
Documentation
1 parent 6b04cc1 commit 5633cc1

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

cab-token-generator/pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@
66
<parent>
77
<groupId>com.google.auth</groupId>
88
<artifactId>google-auth-library-parent</artifactId>
9-
<version>1.29.1-SNAPSHOT</version>
9+
<version>1.29.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-parent:current} -->
1010
</parent>
1111

1212
<artifactId>cab-token-generator</artifactId>
13+
<name>Google Auth Library for Java - Cab Token Generator</name>
1314

14-
<properties>
15-
<maven.compiler.source>22</maven.compiler.source>
16-
<maven.compiler.target>22</maven.compiler.target>
17-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
</properties>
1915
<dependencies>
2016
<dependency>
2117
<groupId>com.google.auth</groupId>

cab-token-generator/src/main/java/com/google/auth/credentialaccessboundary/ClientSideCredentialAccessBoundaryFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions are

oauth2_http/java/com/google/auth/oauth2/CredentialAccessBoundary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public final class CredentialAccessBoundary {
6767
/**
6868
* Internal method that returns the JSON string representation of the credential access boundary.
6969
*/
70-
public String toJson() {
70+
String toJson() {
7171
List<GenericJson> rules = new ArrayList<>();
7272
for (AccessBoundaryRule rule : accessBoundaryRules) {
7373
GenericJson ruleJson = new GenericJson();

oauth2_http/java/com/google/auth/oauth2/StsTokenExchangeResponse.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ public List<String> getScopes() {
110110
return new ArrayList<>(scopes);
111111
}
112112

113+
/**
114+
* Returns the access boundary session key if present.
115+
*
116+
* @return the access boundary session key or {@code null} if not present
117+
*/
113118
@Nullable
114119
public String getAccessBoundarySessionKey() {
115120
return accessBoundarySessionKey;
@@ -151,6 +156,12 @@ public StsTokenExchangeResponse.Builder setScopes(List<String> scopes) {
151156
return this;
152157
}
153158

159+
/**
160+
* Sets the access boundary session key.
161+
*
162+
* @param accessBoundarySessionKey the access boundary session key to set
163+
* @return this {@code Builder} object
164+
*/
154165
@CanIgnoreReturnValue
155166
public StsTokenExchangeResponse.Builder setAccessBoundarySessionKey(
156167
String accessBoundarySessionKey) {

0 commit comments

Comments
 (0)