Class AzureADProvider
java.lang.Object
com.tremolosecurity.provisioning.core.providers.AzureADProvider
- All Implemented Interfaces:
UserStoreProvider
,UserStoreProviderWithAddGroup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroup
(String name, Map<String, String> additionalAttributes, User user, Map<String, Object> request) void
callDelete
(HttpCon con, String uri) void
callDelete
(HttpCon con, String uri, int callNumber) void
callWSPatchJson
(HttpCon con, String uri, String json) void
callWSPatchJson
(HttpCon con, String uri, String json, int callNumber) void
callWSPostJsonNoReesponseExpected
(HttpCon con, String uri, String json) void
callWSPostJsonNoReesponseExpected
(HttpCon con, String uri, String json, int callNumber) callWSPostJsonReesponseExpected
(HttpCon con, String uri, String json) callWSPostJsonReesponseExpected
(HttpCon con, String uri, String json, int callNumber) void
void
void
deleteUser
(User user, Map<String, Object> request) getIdFromEmail
(String email) void
boolean
void
overrideOauth2Token
(String token) searchGroups
(String name, int count) void
setUserPassword
(User user, Map<String, Object> request) void
shutdown()
void
-
Constructor Details
-
AzureADProvider
public AzureADProvider()
-
-
Method Details
-
createUser
public void createUser(User user, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
createUser
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
setUserPassword
- Specified by:
setUserPassword
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
syncUser
public void syncUser(User user, boolean addOnly, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
syncUser
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
deleteUser
- Specified by:
deleteUser
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
findUser
public User findUser(String userID, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
findUser
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
init
public void init(Map<String, Attribute> cfg, ConfigManager cfgMgr, String name) throws ProvisioningException- Specified by:
init
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
addGroup
public void addGroup(String name, Map<String, String> additionalAttributes, User user, Map<String, throws ProvisioningExceptionObject> request) - Specified by:
addGroup
in interfaceUserStoreProviderWithAddGroup
- Throws:
ProvisioningException
-
deleteGroup
public void deleteGroup(String name, User user, Map<String, Object> request) throws ProvisioningException- Specified by:
deleteGroup
in interfaceUserStoreProviderWithAddGroup
- Throws:
ProvisioningException
-
isGroupExists
public boolean isGroupExists(String name, User user, Map<String, Object> request) throws ProvisioningException- Specified by:
isGroupExists
in interfaceUserStoreProviderWithAddGroup
- Throws:
ProvisioningException
-
createClient
-
getIdFromEmail
- Throws:
ProvisioningException
-
callWS
public String callWS(HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWS
public String callWS(HttpCon con, String uri, int callNumber) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callDelete
public void callDelete(HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callDelete
public void callDelete(HttpCon con, String uri, int callNumber) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWSPatchJson
public void callWSPatchJson(HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWSPatchJson
public void callWSPatchJson(HttpCon con, String uri, String json, int callNumber) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWSPostJsonNoReesponseExpected
public void callWSPostJsonNoReesponseExpected(HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWSPostJsonNoReesponseExpected
public void callWSPostJsonNoReesponseExpected(HttpCon con, String uri, String json, int callNumber) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWSPostJsonReesponseExpected
public String callWSPostJsonReesponseExpected(HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWSPostJsonReesponseExpected
public String callWSPostJsonReesponseExpected(HttpCon con, String uri, String json, int callNumber) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
searchGroups
- Throws:
ProvisioningException
-
overrideOauth2Token
-
shutdown
- Specified by:
shutdown
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-