Class: MicrosoftGraph::Models::X509CertificateAuthenticationMethodConfiguration
- Inherits:
-
AuthenticationMethodConfiguration
- Object
- Entity
- AuthenticationMethodConfiguration
- MicrosoftGraph::Models::X509CertificateAuthenticationMethodConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/x509_certificate_authentication_method_configuration.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#authentication_mode_configuration ⇒ Object
Gets the authenticationModeConfiguration property value.
-
#authentication_mode_configuration=(value) ⇒ Object
Sets the authenticationModeConfiguration property value.
-
#certificate_user_bindings ⇒ Object
Gets the certificateUserBindings property value.
-
#certificate_user_bindings=(value) ⇒ Object
Sets the certificateUserBindings property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#include_targets ⇒ Object
Gets the includeTargets property value.
-
#include_targets=(value) ⇒ Object
Sets the includeTargets property value.
-
#initialize ⇒ Object
constructor
Instantiates a new x509CertificateAuthenticationMethodConfiguration and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from AuthenticationMethodConfiguration
#exclude_targets, #exclude_targets=, #state, #state=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new x509CertificateAuthenticationMethodConfiguration and sets the default values.
52 53 54 55 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 52 def initialize() super @odata_type = "#microsoft.graph.x509CertificateAuthenticationMethodConfiguration" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
61 62 63 64 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 61 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return X509CertificateAuthenticationMethodConfiguration.new end |
Instance Method Details
#authentication_mode_configuration ⇒ Object
Gets the authenticationModeConfiguration property value. Defines strong authentication configurations. This configuration includes the default authentication mode and the different rules for strong authentication bindings.
22 23 24 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 22 def authentication_mode_configuration return @authentication_mode_configuration end |
#authentication_mode_configuration=(value) ⇒ Object
Sets the authenticationModeConfiguration property value. Defines strong authentication configurations. This configuration includes the default authentication mode and the different rules for strong authentication bindings.
30 31 32 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 30 def authentication_mode_configuration=(value) @authentication_mode_configuration = value end |
#certificate_user_bindings ⇒ Object
Gets the certificateUserBindings property value. Defines fields in the X.509 certificate that map to attributes of the Azure AD user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored.
37 38 39 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 37 def certificate_user_bindings return @certificate_user_bindings end |
#certificate_user_bindings=(value) ⇒ Object
Sets the certificateUserBindings property value. Defines fields in the X.509 certificate that map to attributes of the Azure AD user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored.
45 46 47 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 45 def certificate_user_bindings=(value) @certificate_user_bindings = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
69 70 71 72 73 74 75 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 69 def get_field_deserializers() return super.merge({ "authenticationModeConfiguration" => lambda {|n| @authentication_mode_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::X509CertificateAuthenticationModeConfiguration.create_from_discriminator_value(pn) }) }, "certificateUserBindings" => lambda {|n| @certificate_user_bindings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::X509CertificateUserBinding.create_from_discriminator_value(pn) }) }, "includeTargets" => lambda {|n| @include_targets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodTarget.create_from_discriminator_value(pn) }) }, }) end |
#include_targets ⇒ Object
Gets the includeTargets property value. A collection of groups that are enabled to use the authentication method.
80 81 82 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 80 def include_targets return @include_targets end |
#include_targets=(value) ⇒ Object
Sets the includeTargets property value. A collection of groups that are enabled to use the authentication method.
88 89 90 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 88 def include_targets=(value) @include_targets = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("authenticationModeConfiguration", @authentication_mode_configuration) writer.write_collection_of_object_values("certificateUserBindings", @certificate_user_bindings) writer.write_collection_of_object_values("includeTargets", @include_targets) end |