rename SingleEntityCredentialManager to SubjectCredentialManager, part 2

This commit is contained in:
Alexander Schwartz 2022-06-14 17:21:42 +02:00 committed by Hynek Mlnařík
parent cb0c881821
commit 896afc4644
3 changed files with 7 additions and 7 deletions

View file

@ -23,12 +23,12 @@ import java.util.List;
import java.util.stream.Stream; import java.util.stream.Stream;
/** /**
* Standard implementation for a {@link MapSingleEntityCredentialManagerEntity} where the store doesn't provide * Standard implementation for a {@link MapSubjectCredentialManagerEntity} where the store doesn't provide
* validation of credentials. * validation of credentials.
* *
* @author Alexander Schwartz * @author Alexander Schwartz
*/ */
public class DefaultMapSingleEntityCredentialManagerEntity implements MapSingleEntityCredentialManagerEntity { public class DefaultMapSubjectCredentialManagerEntity implements MapSubjectCredentialManagerEntity {
@Override @Override
public void validateCredentials(List<CredentialInput> inputs) { public void validateCredentials(List<CredentialInput> inputs) {
} }

View file

@ -27,7 +27,7 @@ import java.util.stream.Stream;
* *
* @author Alexander Schwartz * @author Alexander Schwartz
*/ */
public interface MapSingleEntityCredentialManagerEntity { public interface MapSubjectCredentialManagerEntity {
/** /**
* Validate the credentials of a user. * Validate the credentials of a user.

View file

@ -24,8 +24,8 @@ import org.keycloak.models.map.common.AbstractEntity;
import org.keycloak.models.map.common.DeepCloner; import org.keycloak.models.map.common.DeepCloner;
import org.keycloak.models.map.common.EntityWithAttributes; import org.keycloak.models.map.common.EntityWithAttributes;
import org.keycloak.models.map.common.UpdatableEntity; import org.keycloak.models.map.common.UpdatableEntity;
import org.keycloak.models.map.credential.DefaultMapSingleEntityCredentialManagerEntity; import org.keycloak.models.map.credential.DefaultMapSubjectCredentialManagerEntity;
import org.keycloak.models.map.credential.MapSingleEntityCredentialManagerEntity; import org.keycloak.models.map.credential.MapSubjectCredentialManagerEntity;
import org.keycloak.models.utils.KeycloakModelUtils; import org.keycloak.models.utils.KeycloakModelUtils;
import java.util.Collections; import java.util.Collections;
@ -248,7 +248,7 @@ public interface MapUserEntity extends UpdatableEntity, AbstractEntity, EntityWi
Long getNotBefore(); Long getNotBefore();
void setNotBefore(Long notBefore); void setNotBefore(Long notBefore);
default MapSingleEntityCredentialManagerEntity credentialManager() { default MapSubjectCredentialManagerEntity credentialManager() {
return new DefaultMapSingleEntityCredentialManagerEntity(); return new DefaultMapSubjectCredentialManagerEntity();
} }
} }