Class: VertxAuthJdbc::JDBCAuthentication
- Inherits:
-
VertxAuthCommon::AuthProvider
- Object
- VertxAuthCommon::AuthenticationProvider
- VertxAuthCommon::AuthProvider
- VertxAuthJdbc::JDBCAuthentication
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jdbc/jdbc_authentication.rb
Overview
Factory interface for creating VertxAuthCommon::AuthProvider instances that use the Vert.x JDBC client.
By default the hashing strategy is SHA-512. If you're already running in production this is backwards
compatible, however for new deployments or security upgrades it is recommended to use the PBKDF2 strategy
as it is the current OWASP recommendation for password storage.
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary (collapse)
- + (Boolean) accept?(obj)
-
+ (::VertxAuthJdbc::JDBCAuthentication) create(client, hashStrategy, options)
Create a JDBC auth provider implementation.
- + (Object) j_api_type
- + (Object) j_class
- + (Object) unwrap(obj)
- + (Object) wrap(obj)
Methods inherited from VertxAuthCommon::AuthenticationProvider
Class Method Details
+ (Boolean) accept?(obj)
26 27 28 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jdbc/jdbc_authentication.rb', line 26 def @@j_api_type.accept?(obj) obj.class == JDBCAuthentication end |
+ (::VertxAuthJdbc::JDBCAuthentication) create(client, hashStrategy, options)
Create a JDBC auth provider implementation
47 48 49 50 51 52 53 54 55 56 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jdbc/jdbc_authentication.rb', line 47 def self.create(*args) if args[0].class.method_defined?(:j_del) && args[1].class.method_defined?(:j_del) && args[2].class == Hash && !block_given? return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtAuthJdbc::JDBCAuthentication.java_method(:create, [Java::IoVertxExtJdbc::JDBCClient.java_class,Java::IoVertxExtAuthJdbc::JDBCHashStrategy.java_class,Java::IoVertxExtAuthJdbc::JDBCAuthenticationOptions.java_class]).call(args[0].j_del,args[1].j_del,Java::IoVertxExtAuthJdbc::JDBCAuthenticationOptions.new(::Vertx::Util::Utils.to_json_object(args[2]))),::VertxAuthJdbc::JDBCAuthentication) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling create(#{args[0]},#{args[1]},#{args[2]})" end end |
+ (Object) j_api_type
35 36 37 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jdbc/jdbc_authentication.rb', line 35 def self.j_api_type @@j_api_type end |
+ (Object) j_class
38 39 40 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jdbc/jdbc_authentication.rb', line 38 def self.j_class Java::IoVertxExtAuthJdbc::JDBCAuthentication.java_class end |
+ (Object) unwrap(obj)
32 33 34 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jdbc/jdbc_authentication.rb', line 32 def @@j_api_type.unwrap(obj) obj.j_del end |
+ (Object) wrap(obj)
29 30 31 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jdbc/jdbc_authentication.rb', line 29 def @@j_api_type.wrap(obj) JDBCAuthentication.new(obj) end |