Class urn_perun_user_attribute_def_def_mfaEnforceSettings
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_def_mfaEnforceSettings
- All Implemented Interfaces:
AttributesModuleImplApi
,UserAttributesModuleImplApi
public class urn_perun_user_attribute_def_def_mfaEnforceSettings
extends UserAttributesModuleAbstract
implements UserAttributesModuleImplApi
Check if value of mfaEnforceSetting attribute is valid
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAttributeSemantics
(PerunSessionImpl perunSession, User user, Attribute attribute) The following restrictions are placed on the attribute value: {"include_categories":["str1","str2"]} str1, str2 is an existing key in the entityless attribute mfaCategories {"include_categories":["str1","str2"],"exclude_rps":["rp1","rp2"]} str1, str2 is an existing key in the entityless attribute mfaCategories and rp1, rp2 must exist inside the categoryvoid
checkAttributeSyntax
(PerunSessionImpl perunSession, User user, Attribute attribute) Attribute value should be a valid JSON.Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
changedAttributeHook, fillAttribute, getAnonymizedValue
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleImplApi
changedAttributeHook, fillAttribute, getAnonymizedValue
-
Constructor Details
-
urn_perun_user_attribute_def_def_mfaEnforceSettings
public urn_perun_user_attribute_def_def_mfaEnforceSettings()
-
-
Method Details
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, User user, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException The following restrictions are placed on the attribute value: {"include_categories":["str1","str2"]} str1, str2 is an existing key in the entityless attribute mfaCategories {"include_categories":["str1","str2"],"exclude_rps":["rp1","rp2"]} str1, str2 is an existing key in the entityless attribute mfaCategories and rp1, rp2 must exist inside the category- Specified by:
checkAttributeSemantics
in interfaceUserAttributesModuleImplApi
- Overrides:
checkAttributeSemantics
in classUserAttributesModuleAbstract
- Parameters:
perunSession
- PerunSessionuser
- Userattribute
- Attribute of the user.- Throws:
WrongReferenceAttributeValueException
WrongAttributeAssignmentException
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, User user, Attribute attribute) throws WrongAttributeValueException Attribute value should be a valid JSON. These specific values are allowed: empty string or null {"all":true} {"include_categories":["str1","str2"]} {"include_categories":["str1","str2"],"exclude_rps":["rp1","rp2"]}- Specified by:
checkAttributeSyntax
in interfaceUserAttributesModuleImplApi
- Overrides:
checkAttributeSyntax
in classUserAttributesModuleAbstract
- Parameters:
perunSession
- PerunSessionuser
- Userattribute
- Attribute of the user.- Throws:
WrongAttributeValueException
-