_propDict)) { if (is_a($this->_propDict["rules"], "\Microsoft\Graph\Model\X509CertificateRule") || is_null($this->_propDict["rules"])) { return $this->_propDict["rules"]; } else { $this->_propDict["rules"] = new X509CertificateRule($this->_propDict["rules"]); return $this->_propDict["rules"]; } } return null; } /** * Sets the rules * Rules are configured in addition to the authentication mode to bind a specific x509CertificateRuleType to an x509CertificateAuthenticationMode. For example, bind the policyOID with identifier 1.32.132.343 to x509CertificateMultiFactor authentication mode. * * @param X509CertificateRule $val The value to assign to the rules * * @return X509CertificateAuthenticationModeConfiguration The X509CertificateAuthenticationModeConfiguration */ public function setRules($val) { $this->_propDict["rules"] = $val; return $this; } /** * Gets the x509CertificateAuthenticationDefaultMode * The type of strong authentication mode. The possible values are: x509CertificateSingleFactor, x509CertificateMultiFactor, unknownFutureValue. * * @return X509CertificateAuthenticationMode|null The x509CertificateAuthenticationDefaultMode */ public function getX509CertificateAuthenticationDefaultMode() { if (array_key_exists("x509CertificateAuthenticationDefaultMode", $this->_propDict)) { if (is_a($this->_propDict["x509CertificateAuthenticationDefaultMode"], "\Microsoft\Graph\Model\X509CertificateAuthenticationMode") || is_null($this->_propDict["x509CertificateAuthenticationDefaultMode"])) { return $this->_propDict["x509CertificateAuthenticationDefaultMode"]; } else { $this->_propDict["x509CertificateAuthenticationDefaultMode"] = new X509CertificateAuthenticationMode($this->_propDict["x509CertificateAuthenticationDefaultMode"]); return $this->_propDict["x509CertificateAuthenticationDefaultMode"]; } } return null; } /** * Sets the x509CertificateAuthenticationDefaultMode * The type of strong authentication mode. The possible values are: x509CertificateSingleFactor, x509CertificateMultiFactor, unknownFutureValue. * * @param X509CertificateAuthenticationMode $val The value to assign to the x509CertificateAuthenticationDefaultMode * * @return X509CertificateAuthenticationModeConfiguration The X509CertificateAuthenticationModeConfiguration */ public function setX509CertificateAuthenticationDefaultMode($val) { $this->_propDict["x509CertificateAuthenticationDefaultMode"] = $val; return $this; } }