-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attribute verification module creation
- Loading branch information
1 parent
dfd34ab
commit 1cb8a50
Showing
6 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...m/evolveum/midpoint/authentication/impl/evaluator/AttributeVerificationEvaluatorImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Copyright (c) 2022 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.authentication.impl.evaluator; | ||
|
||
import com.evolveum.midpoint.model.api.context.AttributeVerificationAuthenticationContext; | ||
import com.evolveum.midpoint.security.api.ConnectionEnvironment; | ||
import com.evolveum.midpoint.security.api.MidPointPrincipal; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.*; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component("attributeVerificationEvaluator") | ||
public class AttributeVerificationEvaluatorImpl extends AuthenticationEvaluatorImpl<AbstractCredentialType, AttributeVerificationAuthenticationContext> { | ||
|
||
@Override | ||
protected void checkEnteredCredentials(ConnectionEnvironment connEnv, | ||
AttributeVerificationAuthenticationContext authCtx) { | ||
|
||
} | ||
|
||
@Override | ||
protected boolean supportsAuthzCheck() { | ||
return true; | ||
} | ||
|
||
@Override | ||
protected SecurityQuestionsCredentialsType getCredential(CredentialsType credentials) { | ||
return credentials.getSecurityQuestions(); | ||
} | ||
|
||
@Override | ||
protected void validateCredentialNotNull(ConnectionEnvironment connEnv, | ||
@NotNull MidPointPrincipal principal, AbstractCredentialType credential) { | ||
|
||
|
||
} | ||
|
||
@Override | ||
protected boolean passwordMatches( | ||
ConnectionEnvironment connEnv, @NotNull MidPointPrincipal principal, | ||
AbstractCredentialType passwordType, AttributeVerificationAuthenticationContext authCtx) { | ||
return true; | ||
} | ||
|
||
@Override | ||
protected CredentialPolicyType getEffectiveCredentialPolicy( | ||
SecurityPolicyType securityPolicy, AttributeVerificationAuthenticationContext authnCtx) { | ||
|
||
return null; | ||
} | ||
|
||
@Override | ||
protected boolean supportsActivation() { | ||
return true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters