Tabnine Logo
AuthenticationModule$UserInfo.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.restlet.ext.platform.internal.agent.module.AuthenticationModule$UserInfo
constructor

Best Java code snippets using org.restlet.ext.platform.internal.agent.module.AuthenticationModule$UserInfo.<init> (Showing top 4 results out of 315)

origin: org.restlet.gae/org.restlet.ext.platform

  public UserInfo load(UserIdentifier userIdentifier) {
    Credentials credentials = new Credentials(
        userIdentifier.getIdentifier(),
        userIdentifier.getSecret());
    User user = authenticateClientResource
        .authenticate(credentials);
    if (user == null) {
      // Authentication should throw an error instead of
      // returning
      // null
      throw new AgentException(
          "Authentication should not return null");
    }
    return new UserInfo(user, userIdentifier.getSecret());
  }
};
origin: org.restlet.jse/org.restlet.ext.platform

  public UserInfo load(UserIdentifier userIdentifier) {
    Credentials credentials = new Credentials(
        userIdentifier.getIdentifier(),
        userIdentifier.getSecret());
    User user = authenticateClientResource
        .authenticate(credentials);
    if (user == null) {
      // Authentication should throw an error instead of
      // returning
      // null
      throw new AgentException(
          "Authentication should not return null");
    }
    return new UserInfo(user, userIdentifier.getSecret());
  }
};
origin: org.restlet.osgi/org.restlet.ext.platform

  public UserInfo load(UserIdentifier userIdentifier) {
    Credentials credentials = new Credentials(
        userIdentifier.getIdentifier(),
        userIdentifier.getSecret());
    User user = authenticateClientResource
        .authenticate(credentials);
    if (user == null) {
      // Authentication should throw an error instead of
      // returning
      // null
      throw new AgentException(
          "Authentication should not return null");
    }
    return new UserInfo(user, userIdentifier.getSecret());
  }
};
origin: org.restlet.jee/org.restlet.ext.platform

  public UserInfo load(UserIdentifier userIdentifier) {
    Credentials credentials = new Credentials(
        userIdentifier.getIdentifier(),
        userIdentifier.getSecret());
    User user = authenticateClientResource
        .authenticate(credentials);
    if (user == null) {
      // Authentication should throw an error instead of
      // returning
      // null
      throw new AgentException(
          "Authentication should not return null");
    }
    return new UserInfo(user, userIdentifier.getSecret());
  }
};
org.restlet.ext.platform.internal.agent.moduleAuthenticationModule$UserInfo<init>

Popular methods of AuthenticationModule$UserInfo

  • getSecret
  • getUser

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Collectors (java.util.stream)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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