Codota Logo
AuthenticationManager.authenticateImplicit
Code IndexAdd Codota to your IDE (free)

How to use
authenticateImplicit
method
in
org.dspace.authenticate.AuthenticationManager

Best Java code snippets using org.dspace.authenticate.AuthenticationManager.authenticateImplicit (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.dspace/dspace-xmlui-api

/**
 * Perform implicit authentication. The authenticationManager will consult
 * the authentication stack for any methods that can implicitly authenticate
 * this session. If the attempt was successful then the returned context
 * will have an eperson attached other wise the context will not have an
 * eperson attached.
 * 
 * @param objectModel
 *            Cocoon's object model.
 * @return This requests DSpace context.
 */
public static Context authenticateImplicit(Map objectModel)
    throws SQLException
{
  // Get the real HttpRequest
  final HttpServletRequest request = (HttpServletRequest) objectModel
      .get(HttpEnvironment.HTTP_REQUEST_OBJECT);
  Context context = ContextUtil.obtainContext(objectModel);
  int implicitStatus = AuthenticationManager.authenticateImplicit(
      context, null, null, null, request);
  if (implicitStatus == AuthenticationMethod.SUCCESS)
  {
    log.info(LogManager.getHeader(context, "login", "type=implicit"));
    AuthenticationUtil.logIn(context, request, context.getCurrentUser());
  }
  return context;
}
origin: org.dspace/dspace-jspui-api

if (AuthenticationManager.authenticateImplicit(context, null, null,
    null, request) == AuthenticationMethod.SUCCESS)
origin: org.dspace/dspace-xmlui-api

Context context = ContextUtil.obtainContext(objectModel);
int implicitStatus = AuthenticationManager.authenticateImplicit(
    context, null, null, null, request);
org.dspace.authenticateAuthenticationManagerauthenticateImplicit

Popular methods of AuthenticationManager

  • authenticate
  • getSpecialGroups
  • allowSetPassword
  • authenticationMethodIterator
  • canSelfRegister
  • initEPerson

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • startActivity (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now