Skip to content

Commit c4d48c2

Browse files
authored
Make AuthToken rotation and session auth support API GA (#1495)
This update promotes the AuthToken rotation and session auth support API from preview to GA status.
1 parent d2da5dd commit c4d48c2

File tree

8 files changed

+0
-20
lines changed

8 files changed

+0
-20
lines changed

driver/src/main/java/org/neo4j/driver/AuthToken.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.function.Supplier;
2222
import org.neo4j.driver.internal.security.InternalAuthToken;
2323
import org.neo4j.driver.internal.security.InternalAuthTokenAndExpiration;
24-
import org.neo4j.driver.util.Preview;
2524

2625
/**
2726
* Token for holding authentication details, such as <em>user name</em> and <em>password</em>.
@@ -45,7 +44,6 @@ public sealed interface AuthToken permits InternalAuthToken {
4544
* @see AuthTokenManagers#bearer(Supplier)
4645
* @see AuthTokenManagers#bearerAsync(Supplier)
4746
*/
48-
@Preview(name = "AuthToken rotation and session auth support")
4947
default AuthTokenAndExpiration expiringAt(long utcExpirationTimestamp) {
5048
return new InternalAuthTokenAndExpiration(this, utcExpirationTimestamp);
5149
}

driver/src/main/java/org/neo4j/driver/AuthTokenAndExpiration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import java.util.function.Supplier;
2222
import org.neo4j.driver.internal.security.InternalAuthTokenAndExpiration;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* A container used by the expiration based {@link AuthTokenManager} implementation provided by the driver, it contains an
@@ -33,7 +32,6 @@
3332
* @see AuthTokenManagers#bearer(Supplier)
3433
* @see AuthTokenManagers#bearerAsync(Supplier)
3534
*/
36-
@Preview(name = "AuthToken rotation and session auth support")
3735
public sealed interface AuthTokenAndExpiration permits InternalAuthTokenAndExpiration {
3836
/**
3937
* Returns the {@link AuthToken}.

driver/src/main/java/org/neo4j/driver/AuthTokenManager.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.neo4j.driver.exceptions.AuthTokenManagerExecutionException;
2323
import org.neo4j.driver.exceptions.SecurityException;
2424
import org.neo4j.driver.exceptions.SecurityRetryableException;
25-
import org.neo4j.driver.util.Preview;
2625

2726
/**
2827
* A manager of {@link AuthToken} instances used by the driver.
@@ -43,7 +42,6 @@
4342
* be done on the calling thread.
4443
* @since 5.8
4544
*/
46-
@Preview(name = "AuthToken rotation and session auth support")
4745
public interface AuthTokenManager {
4846
/**
4947
* Returns a {@link CompletionStage} for a valid {@link AuthToken}.

driver/src/main/java/org/neo4j/driver/AuthTokenManagers.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@
3030
import org.neo4j.driver.exceptions.SecurityException;
3131
import org.neo4j.driver.exceptions.TokenExpiredException;
3232
import org.neo4j.driver.internal.security.ExpirationBasedAuthTokenManager;
33-
import org.neo4j.driver.util.Preview;
3433

3534
/**
3635
* Implementations of {@link AuthTokenManager}.
3736
*
3837
* @since 5.8
3938
*/
40-
@Preview(name = "AuthToken rotation and session auth support")
4139
public final class AuthTokenManagers {
4240
private AuthTokenManagers() {}
4341

driver/src/main/java/org/neo4j/driver/Driver.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.neo4j.driver.reactive.RxSession;
2626
import org.neo4j.driver.types.TypeSystem;
2727
import org.neo4j.driver.util.Experimental;
28-
import org.neo4j.driver.util.Preview;
2928

3029
/**
3130
* Accessor for a specific Neo4j graph database.
@@ -174,7 +173,6 @@ default <T extends BaseSession> T session(Class<T> sessionClass) {
174173
* @throws IllegalArgumentException for unsupported session types
175174
* @since 5.8
176175
*/
177-
@Preview(name = "AuthToken rotation and session auth support")
178176
@SuppressWarnings("deprecation")
179177
default <T extends BaseSession> T session(Class<T> sessionClass, AuthToken sessionAuthToken) {
180178
return session(sessionClass, SessionConfig.defaultConfig(), sessionAuthToken);
@@ -247,7 +245,6 @@ default <T extends BaseSession> T session(Class<T> sessionClass, SessionConfig s
247245
* @throws IllegalArgumentException for unsupported session types
248246
* @since 5.8
249247
*/
250-
@Preview(name = "AuthToken rotation and session auth support")
251248
@SuppressWarnings("deprecation")
252249
<T extends BaseSession> T session(Class<T> sessionClass, SessionConfig sessionConfig, AuthToken sessionAuthToken);
253250

driver/src/main/java/org/neo4j/driver/GraphDatabase.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.neo4j.driver.internal.DriverFactory;
2525
import org.neo4j.driver.internal.security.StaticAuthTokenManager;
2626
import org.neo4j.driver.internal.security.ValidatingAuthTokenManager;
27-
import org.neo4j.driver.util.Preview;
2827

2928
/**
3029
* Creates {@link Driver drivers}, optionally letting you {@link #driver(URI, Config)} to configure them.
@@ -135,7 +134,6 @@ public static Driver driver(URI uri, AuthToken authToken, Config config) {
135134
* @since 5.8
136135
* @see AuthTokenManager
137136
*/
138-
@Preview(name = "AuthToken rotation and session auth support")
139137
public static Driver driver(URI uri, AuthTokenManager authTokenManager) {
140138
return driver(uri, authTokenManager, Config.defaultConfig());
141139
}
@@ -150,7 +148,6 @@ public static Driver driver(URI uri, AuthTokenManager authTokenManager) {
150148
* @since 5.8
151149
* @see AuthTokenManager
152150
*/
153-
@Preview(name = "AuthToken rotation and session auth support")
154151
public static Driver driver(String uri, AuthTokenManager authTokenManager) {
155152
return driver(URI.create(uri), authTokenManager);
156153
}
@@ -165,7 +162,6 @@ public static Driver driver(String uri, AuthTokenManager authTokenManager) {
165162
* @since 5.8
166163
* @see AuthTokenManager
167164
*/
168-
@Preview(name = "AuthToken rotation and session auth support")
169165
public static Driver driver(URI uri, AuthTokenManager authTokenManager, Config config) {
170166
return driver(uri, authTokenManager, config, new DriverFactory());
171167
}
@@ -180,7 +176,6 @@ public static Driver driver(URI uri, AuthTokenManager authTokenManager, Config c
180176
* @since 5.8
181177
* @see AuthTokenManager
182178
*/
183-
@Preview(name = "AuthToken rotation and session auth support")
184179
public static Driver driver(String uri, AuthTokenManager authTokenManager, Config config) {
185180
return driver(URI.create(uri), authTokenManager, config);
186181
}

driver/src/main/java/org/neo4j/driver/exceptions/AuthTokenManagerExecutionException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import java.io.Serial;
2222
import org.neo4j.driver.AuthTokenManager;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* The {@link org.neo4j.driver.AuthTokenManager} execution has lead to an unexpected result.
@@ -35,7 +34,6 @@
3534
* </ul>
3635
* @since 5.8
3736
*/
38-
@Preview(name = "AuthToken rotation and session auth support")
3937
public class AuthTokenManagerExecutionException extends ClientException {
4038
@Serial
4139
private static final long serialVersionUID = -5964665406806723214L;

driver/src/main/java/org/neo4j/driver/exceptions/SecurityRetryableException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import java.util.Objects;
2323
import org.neo4j.driver.AuthToken;
2424
import org.neo4j.driver.util.Experimental;
25-
import org.neo4j.driver.util.Preview;
2625

2726
/**
2827
* Indicates that the contained {@link SecurityException} is a {@link RetryableException}, which is determined by the
@@ -34,7 +33,6 @@
3433
*
3534
* @since 5.12
3635
*/
37-
@Preview(name = "AuthToken rotation and session auth support")
3836
public class SecurityRetryableException extends SecurityException implements RetryableException {
3937
@Serial
4038
private static final long serialVersionUID = 3914900631374208080L;

0 commit comments

Comments
 (0)