Class KeystoneProvisioningTarget
java.lang.Object
com.tremolosecurity.unison.openstack.KeystoneProvisioningTarget
- All Implemented Interfaces:
UserStoreProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallWSDelete
(String token, HttpCon con, String uri) boolean
callWSPutNoData
(String token, HttpCon con, String uri) void
void
deleteUser
(User user, Map<String, Object> request) getDomainID
(String token, HttpCon con, String name) getDomainName
(String id) void
lookupUser
(String userID, Set<String> attributes, Map<String, Object> request, KSToken token, HttpCon con) void
setUserPassword
(User user, Map<String, Object> request) void
shutdown()
void
-
Constructor Details
-
KeystoneProvisioningTarget
public KeystoneProvisioningTarget()
-
-
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
-
lookupUser
-
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
-
getToken
-
createClient
-
callWS
public String callWS(String token, HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
callWSPutNoData
public boolean callWSPutNoData(String token, HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
callWSDelete
public String callWSDelete(String token, HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
getDomainID
-
getDomainName
- Throws:
ProvisioningException
-
listDomains
- Throws:
ProvisioningException
-
listProjects
- Throws:
ProvisioningException
-
listRoles
- Throws:
ProvisioningException
-
listDomainObjs
- Throws:
ProvisioningException
-
listProjectObjs
- Throws:
ProvisioningException
-
listRoleObjs
- Throws:
ProvisioningException
-
shutdown
- Specified by:
shutdown
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-