package com.sun.identity.saml2.plugins;

import com.sun.identity.plugin.datastore.DataStoreProvider;
import com.sun.identity.saml2.common.SAML2Exception;
import com.sun.identity.saml2.common.SAML2SDKUtils;
import com.sun.identity.saml2.common.SAML2Utils;
import java.util.Map;

public abstract class DefaultAttributeMapper {
   protected static DataStoreProvider dsProvider;
   protected static final String IDP = "IDPRole";
   protected static final String SP = "SPRole";

   public Map<String, String> getConfigAttributeMap(String realm, String hostEntityID, String role) throws SAML2Exception {
      return SAML2Utils.getConfigAttributeMap(realm, hostEntityID, role);
   }

   static {
      try {
         dsProvider = SAML2Utils.getDataStoreProvider();
      } catch (Exception ex) {
         SAML2SDKUtils.DEBUG.error("DefaultAttributeMapper.static init failed.", ex);
      }
   }
}
