package org.apereo.cas.authentication;

import java.util.List;
import java.util.Map;

/**
 * This is {@link PrincipalAttributesMapper}.
 *
 * @author Misagh Moayyed
 * @since 6.6.0
 */
@FunctionalInterface
public interface PrincipalAttributesMapper {

    Map<String, List<Object>> map(final AttributeMappingRequest request);

    static PrincipalAttributesMapper defaultMapper() {
        return new DefaultPrincipalAttributesMapper();
    }
}

package org.apereo.cas.authentication;

import java.util.List;
import java.util.Map;

/**
 * This is {@link PrincipalAttributesMapper}.
 *
 * @author Misagh Moayyed
 * @since 6.6.0
 */
@FunctionalInterface
public interface PrincipalAttributesMapper {

    /**
     * Map principal attributes.
     *
     * @param request the request
     * @return the map
     */
    Map<String, List<Object>> map(AttributeMappingRequest request);

    /**
     * Default principal attributes mapper.
     *
     * @return the principal attributes mapper
     */
    static PrincipalAttributesMapper defaultMapper() {
        return new DefaultPrincipalAttributesMapper();
    }
}

fix missing javadoc