Commit f8561636 authored by Jeff Burke's avatar Jeff Burke
Browse files

s1849: updates for LocalAuthority constuctor taking a Standard.

parent b537af89
......@@ -110,7 +110,7 @@ public class ACIdentityManager implements IdentityManager
public NumericPrincipal run() throws Exception
{
LocalAuthority localAuth = new LocalAuthority();
URI serviceURI = localAuth.getServiceURI("ums");
URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toString());
UserClient userClient = new UserClient(serviceURI);
User newUser = userClient.createUser(x500Principal);
......@@ -206,7 +206,7 @@ public class ACIdentityManager implements IdentityManager
public Object run() throws Exception
{
LocalAuthority localAuth = new LocalAuthority();
URI serviceURI = localAuth.getServiceURI("ums");
URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toString());
UserClient userClient = new UserClient(serviceURI);
userClient.augmentSubject(subject);
......@@ -236,7 +236,7 @@ public class ACIdentityManager implements IdentityManager
{
RegistryClient regClient = new RegistryClient();
LocalAuthority localAuth = new LocalAuthority();
URI serviceURI = localAuth.getServiceURI("gms");
URI serviceURI = localAuth.getServiceURI(Standards.GMS_GROUPS_01.toString());
URL serviceURL = regClient.getServiceURL(serviceURI, Standards.GMS_GROUPS_01, AuthMethod.ANON);
// Hack to strip off the groups endpoint to get the base url of the service.
......
......@@ -74,7 +74,7 @@ public class AuthenticatorImpl implements Authenticator
{
RegistryClient regClient = new RegistryClient();
LocalAuthority localAuth = new LocalAuthority();
URI serviceURI = localAuth.getServiceURI("gms");
URI serviceURI = localAuth.getServiceURI(Standards.GMS_GROUPS_01.toString());
URL serviceURL = regClient.getServiceURL(serviceURI, Standards.GMS_GROUPS_01, AuthMethod.ANON);
// Hack to strip off the groups endpoint to get the base url of the service.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment