class KeycloakAdmin::CredentialRepresentation
Attributes
algorithm[RW]
config[RW]
counter[RW]
created_date[RW]
device[RW]
digits[RW]
hashIterations[RW]
hashedSaltedValue[RW]
period[RW]
salt[RW]
temporary[RW]
type[RW]
value[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/keycloak-admin/representation/credential_representation.rb, line 30 def self.from_hash(hash) credential = new hash.each do |key, value| property = "@#{key}".to_sym credential.instance_variable_set(property, value) end credential end
from_json(json)
click to toggle source
# File lib/keycloak-admin/representation/credential_representation.rb, line 25 def self.from_json(json) attributes = JSON.parse(json) from_hash(attributes) end
from_password(password, temporary=false)
click to toggle source
# File lib/keycloak-admin/representation/credential_representation.rb, line 17 def self.from_password(password, temporary=false) credential = new credential.value = password credential.type = "password" credential.temporary = temporary credential end