Class: VertxAuth::ShiroAuthService
- Inherits:
-
AuthService
- Object
- AuthService
- VertxAuth::ShiroAuthService
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-auth-service/src/main/resources/vertx-auth/shiro_auth_service.rb
Overview
An Auth service implementation that uses Apache Shiro internally.
Class Method Summary (collapse)
-
+ (::VertxAuth::AuthService) create(vertx = nil, authRealmType = nil, config = nil)
Create an auth service using the specified auth realm type.
Methods inherited from AuthService
create_event_bus_proxy, create_from_class_name, #has_permission, #has_permissions, #has_role, #has_roles, #login, #login_with_timeout, #logout, #refresh_login_session, #set_reaper_period, #start, #stop
Class Method Details
+ (::VertxAuth::AuthService) create(vertx = nil, authRealmType = nil, config = nil)
Create an auth service using the specified auth realm type.
24 25 26 27 28 29 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-auth-service/src/main/resources/vertx-auth/shiro_auth_service.rb', line 24 def self.create(vertx=nil,authRealmType=nil,config=nil) if vertx.class.method_defined?(:j_del) && authRealmType.class == Symbol && config.class == Hash && !block_given? return ::VertxAuth::AuthService.new(Java::IoVertxExtAuthShiro::ShiroAuthService.java_method(:create, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxExtAuthShiro::ShiroAuthRealmType.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(vertx.j_del,Java::IoVertxExtAuthShiro::ShiroAuthRealmType.valueOf(authRealmType),::Vertx::Util::Utils.to_json_object(config))) end raise ArgumentError, "Invalid arguments when calling create(vertx,authRealmType,config)" end |