Tabnine Logo
UserClient
Code IndexAdd Tabnine to your IDE (free)

How to use
UserClient
in
ca.nrc.cadc.ac.client

Best Java code snippets using ca.nrc.cadc.ac.client.UserClient (Showing top 7 results out of 315)

origin: org.opencadc/cadc-access-control-identity

  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;
  }
};
origin: org.opencadc/cadc-access-control-identity

  @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();
  }
};
origin: org.opencadc/cadc-access-control

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));
origin: org.opencadc/cadc-access-control

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);
origin: org.opencadc/cadc-access-control

userWriter.write(user, userXML);
AuthMethod am = getAuthMethod();
URL createUserURL = getRegistryClient()
    .getServiceURL(this.serviceID, Standards.UMS_USERS_01, am);
    return getUser(principal);
origin: org.opencadc/cadc-access-control

AuthMethod am = getAuthMethod();
URL usersURL = getRegistryClient()
    .getServiceURL(this.serviceID, Standards.UMS_USERS_01, am);
final List<User> webUsers = new ArrayList<User>();
origin: org.opencadc/cadc-access-control

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);
ca.nrc.cadc.ac.clientUserClient

Javadoc

Client class for performing user searching and user actions with the access control web service.

Most used methods

  • <init>
    Constructor.
  • augmentSubject
    This method takes a subject with at least one valid principal, uses the ac user web service to get a
  • createUser
    Create an auto-approved user directly in the user tree (not the userRequest tree) from the principal
  • download
    Used for tests to override.
  • getAuthMethod
  • getIdType
  • getOutputStream
    Override for tests to write to a different output.
  • getPrincipal
  • getPrincipals
  • getRegistryClient
  • getUser
    Given a pricipal return the user object.
  • getUser

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JTable (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now