Class: Neo4j::Driver::Internal::Security::StaticAuthTokenManager
- Inherits:
-
InternalAuthTokenManager
- Object
- InternalAuthTokenManager
- Neo4j::Driver::Internal::Security::StaticAuthTokenManager
- Defined in:
- lib/neo4j/driver/internal/security/static_auth_token_manager.rb
Overview
MRI counterpart to Java's
org.neo4j.driver.internal.security.StaticAuthTokenManager.
Returns the same AuthToken forever and never treats a
security exception as retryable. Subclasses our
duck-typed Neo4j::Driver::AuthTokenManager so the protocol
— get_token / handle_security_exception — matches
everything else MRI consumes.
Instance Method Summary collapse
-
#initialize(token) ⇒ StaticAuthTokenManager
constructor
A new instance of StaticAuthTokenManager.
Methods inherited from InternalAuthTokenManager
#get_token, #handle_security_exception
Constructor Details
#initialize(token) ⇒ StaticAuthTokenManager
Returns a new instance of StaticAuthTokenManager.
15 16 17 18 19 20 |
# File 'lib/neo4j/driver/internal/security/static_auth_token_manager.rb', line 15 def initialize(token) super( get_token: -> { token }, handle_security_exception: ->(_, _) { false } ) end |