public class ProxyAuthentication extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Adds proxy authentication information to a graph statement.
Adds proxy authentication information to a CQL statement.
@NonNull public static <StatementT extends Statement<StatementT>> StatementT executeAs(@NonNull String userOrRole, @NonNull StatementT statement)
This allows executing a statement as another role than the one the session is currently authenticated as.
userOrRole- the role to use for execution. If the statement was already configured with another role, it will get replaced by this one.
statement- the statement to modify.
statement, but acting as the provided role. Note: with the driver's default implementations, this will always be a copy; but if you use a custom implementation, it might return the same instance (depending on the behavior of
Copyright © 2017–2020. All rights reserved.