public Object run() throws Exception { LocalAuthority localAuth = new LocalAuthority(); URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toASCIIString()); UserClient userClient = new UserClient(serviceURI); userClient.augmentSubject(subject); return null; } };
@Override public NumericPrincipal run() throws Exception { LocalAuthority localAuth = new LocalAuthority(); URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toASCIIString()); UserClient userClient = new UserClient(serviceURI); User newUser = userClient.createUser(x500Principal); Set<NumericPrincipal> set = newUser.getIdentities(NumericPrincipal.class); if (set.isEmpty()) { throw new IllegalStateException("missing internal id"); } return set.iterator().next(); } };
Principal principal = this.getPrincipal(subject); if (principal != null) .getIdType(principal) + "&detail=identity"; URL usersURL = getRegistryClient() .getServiceURL(this.serviceID, Standards.UMS_USERS_01, AuthMethod.CERT); URL getUserURL = new URL(usersURL.toExternalForm() + path); subject.getPrincipals().addAll(this.getPrincipals(out));
AuthMethod am = getAuthMethod(); final URL whoAmIURL = getRegistryClient() .getServiceURL(this.serviceID, Standards.UMS_WHOAMI_01, am); if (whoAmIURL == null) OutputStream out = getOutputStream(); final HttpDownload get = download(whoAmIURL, out);
userWriter.write(user, userXML); AuthMethod am = getAuthMethod(); URL createUserURL = getRegistryClient() .getServiceURL(this.serviceID, Standards.UMS_USERS_01, am); return getUser(principal);
AuthMethod am = getAuthMethod(); URL usersURL = getRegistryClient() .getServiceURL(this.serviceID, Standards.UMS_USERS_01, am); final List<User> webUsers = new ArrayList<User>();
String path = "/" + id + "?idType=" + AuthenticationUtil .getPrincipalType(principal); AuthMethod am = getAuthMethod(); URL usersURL = getRegistryClient() .getServiceURL(this.serviceID, Standards.UMS_USERS_01, am); URL getUserURL = new URL(usersURL.toExternalForm() + path);