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 TypeMethodDescriptionvoidcheckAttributeSemantics(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 categoryvoidcheckAttributeSyntax(PerunSessionImpl perunSession, User user, Attribute attribute) Attribute value should be a valid JSON.Methods inherited from class UserAttributesModuleAbstract
changedAttributeHook, deletedEntityHook, fillAttribute, getAnonymizedValueMethods inherited from class AttributesModuleAbstract
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChangeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChangeMethods inherited from interface UserAttributesModuleImplApi
changedAttributeHook, deletedEntityHook, 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:
checkAttributeSemanticsin interfaceUserAttributesModuleImplApi- Overrides:
checkAttributeSemanticsin classUserAttributesModuleAbstract- Parameters:
perunSession- PerunSessionuser- Userattribute- Attribute of the user.- Throws:
WrongReferenceAttributeValueExceptionWrongAttributeAssignmentException
-
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:
checkAttributeSyntaxin interfaceUserAttributesModuleImplApi- Overrides:
checkAttributeSyntaxin classUserAttributesModuleAbstract- Parameters:
perunSession- PerunSessionuser- Userattribute- Attribute of the user.- Throws:
WrongAttributeValueException
-