Class: Keycloak_FFI::KeycloakJWT
- Inherits:
-
FFI::ManagedStruct
- Object
- FFI::ManagedStruct
- Keycloak_FFI::KeycloakJWT
- Defined in:
- lib/libkeycloak.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.release(ptr) ⇒ Object
245 246 247 248 249 250 |
# File 'lib/libkeycloak.rb', line 245 def self.release ptr unless ptr.nil? Keycloak_FFI.keycloak_destroy_jwt(ptr) FFI::LibC.free(ptr) end end |
Instance Method Details
#[](claim_name) ⇒ Object
235 236 237 238 239 240 241 242 243 |
# File 'lib/libkeycloak.rb', line 235 def [](claim_name) claim = KeycloakJWTClaim.new Keycloak_FFI.keycloak_jwt_get_claim( self, claim_name.to_s, claim ) return Keycloak._jwt_claim_value(claim) end |