Class SecurityPolicyUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.SecurityPolicyUtil
-
public class SecurityPolicyUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CHANNEL
static String
DEFAULT_MODULE_NAME
static String
DEFAULT_SEQUENCE_DISPLAY_NAME
static String
DEFAULT_SEQUENCE_NAME
static List<String>
NO_CUSTOM_IGNORED_LOCAL_PATH
Constant representing no custom ignored local paths (can be null or empty collection).
-
Constructor Summary
Constructors Constructor Description SecurityPolicyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthenticationsPolicyType
createDefaultAuthenticationPolicy(List<String> customIgnoredLocalPaths, SchemaRegistry schemaRegistry)
static AuthenticationSequenceType
createDefaultSequence()
static AuthenticationSequenceType
findSequenceByName(@NotNull SecurityPolicyType securityPolicy, String name)
static NonceCredentialsPolicyType
getCredentialPolicy(String policyName, SecurityPolicyType securityPolicy)
static SelfRegistrationPolicyType
getSelfRegistrationPolicy(SecurityPolicyType securityPolicyType)
static List<AuthenticationSequenceModuleType>
getSortedModules(AuthenticationSequenceType sequence)
-
-
-
Field Detail
-
DEFAULT_CHANNEL
public static final String DEFAULT_CHANNEL
-
DEFAULT_MODULE_NAME
public static final String DEFAULT_MODULE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SEQUENCE_NAME
public static final String DEFAULT_SEQUENCE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SEQUENCE_DISPLAY_NAME
public static final String DEFAULT_SEQUENCE_DISPLAY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCredentialPolicy
public static NonceCredentialsPolicyType getCredentialPolicy(String policyName, SecurityPolicyType securityPolicy) throws SchemaException
- Throws:
SchemaException
-
getSortedModules
public static List<AuthenticationSequenceModuleType> getSortedModules(AuthenticationSequenceType sequence)
-
createDefaultAuthenticationPolicy
public static AuthenticationsPolicyType createDefaultAuthenticationPolicy(List<String> customIgnoredLocalPaths, SchemaRegistry schemaRegistry) throws SchemaException
- Throws:
SchemaException
-
createDefaultSequence
public static AuthenticationSequenceType createDefaultSequence()
-
getSelfRegistrationPolicy
public static SelfRegistrationPolicyType getSelfRegistrationPolicy(SecurityPolicyType securityPolicyType)
-
findSequenceByName
public static AuthenticationSequenceType findSequenceByName(@NotNull @NotNull SecurityPolicyType securityPolicy, String name)
-
-