class Saml::AttributeService

Overview

SAML2 AttributeService. Auxiliary class to build the AttributeService of the SP Metadata

Defined in:

saml/attribute_service.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Initializes the AttributeService, set the index value as 1 and an empty array as attributes


[View source]

Instance Method Detail

def add_attribute(options : Hash(Symbol, String | Int32)) #

Add an AttributeService @param options [Hash] AttributeService option values add_attribute( :name => "Name", :name_format => "Name Format", :index => 1, :friendly_name => "Friendly Name", :attribute_value => "Attribute Value" )


[View source]
def attributes : Array(Hash(Symbol, Int32 | String)) #

[View source]
def configure(&block) #

[View source]
def configured? #

@return [Boolean] True if the AttributeService object has been initialized and set with the required values (has attributes and a name)


[View source]
def index : String #

[View source]
def name #

[View source]
def service_index(index : String) #

Set an index to the service @param index [Integer] An index


[View source]
def service_name(name) #

Set a name to the service @param name [String] The service name


[View source]