congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JAASCallbackHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
JAASCallbackHandler
in
org.apache.catalina.realm

Best Java code snippets using org.apache.catalina.realm.JAASCallbackHandler (Showing top 20 results out of 315)

origin: org.apache.tomcat/tomcat-catalina

/**
 * @return the <code>Principal</code> associated with the given user name.
 */
@Override
protected Principal getPrincipal(String username) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, null, null, null, null,
          null, null, null, HttpServletRequest.CLIENT_CERT_AUTH));
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Return the <code>Principal</code> associated with the given user name.
 */
@Override
protected Principal getPrincipal(String username) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, null, null, null, null,
          null, null, null, HttpServletRequest.CLIENT_CERT_AUTH));
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * @return the <code>Principal</code> associated with the given user name.
 */
@Override
protected Principal getPrincipal(String username) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, null, null, null, null,
          null, null, null, HttpServletRequest.CLIENT_CERT_AUTH));
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return the <code>Principal</code> associated with the given user name.
 */
@Override
protected Principal getPrincipal(String username) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, null, null, null, null,
          null, null, null, HttpServletRequest.CLIENT_CERT_AUTH));
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return the <code>Principal</code> associated with the given user name.
 */
@Override
protected Principal getPrincipal(String username) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, null, null, null, null,
          null, null, null, Constants.CERT_METHOD));
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return the <code>Principal</code> associated with the given user name.
 */
@Override
protected Principal getPrincipal(String username) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, null, null, null, null,
          null, null, null, Constants.CERT_METHOD));
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return the <code>Principal</code> associated with the specified username
 * and credentials, if there is one; otherwise return <code>null</code>.
 *
 * @param username Username of the <code>Principal</code> to look up
 * @param credentials Password or other credentials to use in
 *  authenticating this username
 */
@Override
public Principal authenticate(String username, String credentials) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, credentials));
}
 
origin: codefollower/Tomcat-Research

/**
 * Return the <code>Principal</code> associated with the specified username
 * and credentials, if there is one; otherwise return <code>null</code>.
 *
 * @param username Username of the <code>Principal</code> to look up
 * @param credentials Password or other credentials to use in
 *  authenticating this username
 */
@Override
public Principal authenticate(String username, String credentials) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, credentials));
}
origin: codefollower/Tomcat-Research

/**
 * Return the <code>Principal</code> associated with the given user name.
 */
@Override
protected Principal getPrincipal(String username) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, null, null, null, null,
          null, null, null, HttpServletRequest.CLIENT_CERT_AUTH));
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Return the <code>Principal</code> associated with the specified username
 * and credentials, if there is one; otherwise return <code>null</code>.
 *
 * @param username Username of the <code>Principal</code> to look up
 * @param credentials Password or other credentials to use in
 *  authenticating this username
 * @return the associated principal, or <code>null</code> if there is none.
 */
@Override
public Principal authenticate(String username, String credentials) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, credentials));
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return the <code>Principal</code> associated with the specified username
 * and credentials, if there is one; otherwise return <code>null</code>.
 *
 * @param username Username of the <code>Principal</code> to look up
 * @param credentials Password or other credentials to use in
 *  authenticating this username
 */
@Override
public Principal authenticate(String username, String credentials) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, credentials));
}
 
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return the <code>Principal</code> associated with the given user name.
 */
@Override
protected Principal getPrincipal(String username) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, null, null, null, null,
          null, null, null, Constants.CERT_METHOD));
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Return the <code>Principal</code> associated with the specified username
 * and credentials, if there is one; otherwise return <code>null</code>.
 *
 * @param username Username of the <code>Principal</code> to look up
 * @param credentials Password or other credentials to use in
 *  authenticating this username
 * @return the associated principal, or <code>null</code> if there is none.
 */
@Override
public Principal authenticate(String username, String credentials) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, credentials));
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Return the <code>Principal</code> associated with the specified username
 * and credentials, if there is one; otherwise return <code>null</code>.
 *
 * @param username Username of the <code>Principal</code> to look up
 * @param credentials Password or other credentials to use in
 *  authenticating this username
 */
@Override
public Principal authenticate(String username, String credentials) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, credentials));
}
 
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return the <code>Principal</code> associated with the specified username
 * and credentials, if there is one; otherwise return <code>null</code>.
 *
 * @param username Username of the <code>Principal</code> to look up
 * @param credentials Password or other credentials to use in
 *  authenticating this username
 */
@Override
public Principal authenticate(String username, String credentials) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, credentials));
}
 
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return the <code>Principal</code> associated with the specified username
 * and credentials, if there is one; otherwise return <code>null</code>.
 *
 * @param username Username of the <code>Principal</code> to look up
 * @param credentials Password or other credentials to use in
 *  authenticating this username
 */
@Override
public Principal authenticate(String username, String credentials) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, credentials));
}
 
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return the <code>Principal</code> associated with the specified username
 * and digest, if there is one; otherwise return <code>null</code>.
 *
 * @param username      Username of the <code>Principal</code> to look up
 * @param clientDigest  Digest to use in authenticating this username
 * @param nonce         Server generated nonce
 * @param nc            Nonce count
 * @param cnonce        Client generated nonce
 * @param qop           Quality of protection applied to the message
 * @param realmName     Realm name
 * @param md5a2         Second MD5 digest used to calculate the digest
 *                          MD5(Method + ":" + uri)
 */
@Override
public Principal authenticate(String username, String clientDigest,
    String nonce, String nc, String cnonce, String qop,
    String realmName, String md5a2) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, clientDigest, nonce,
          nc, cnonce, qop, realmName, md5a2,
          Constants.DIGEST_METHOD));
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return the <code>Principal</code> associated with the specified username
 * and digest, if there is one; otherwise return <code>null</code>.
 *
 * @param username      Username of the <code>Principal</code> to look up
 * @param clientDigest  Digest to use in authenticating this username
 * @param nonce         Server generated nonce
 * @param nc            Nonce count
 * @param cnonce        Client generated nonce
 * @param qop           Quality of protection applied to the message
 * @param realmName     Realm name
 * @param md5a2         Second MD5 digest used to calculate the digest
 *                          MD5(Method + ":" + uri)
 */
@Override
public Principal authenticate(String username, String clientDigest,
    String nonce, String nc, String cnonce, String qop,
    String realmName, String md5a2) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, clientDigest, nonce,
          nc, cnonce, qop, realmName, md5a2,
          HttpServletRequest.DIGEST_AUTH));
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Return the <code>Principal</code> associated with the specified username
 * and digest, if there is one; otherwise return <code>null</code>.
 *
 * @param username      Username of the <code>Principal</code> to look up
 * @param clientDigest  Digest to use in authenticating this username
 * @param nonce         Server generated nonce
 * @param nc            Nonce count
 * @param cnonce        Client generated nonce
 * @param qop           Quality of protection applied to the message
 * @param realmName     Realm name
 * @param md5a2         Second MD5 digest used to calculate the digest
 *                          MD5(Method + ":" + uri)
 * @return the associated principal, or <code>null</code> if there is none.
 */
@Override
public Principal authenticate(String username, String clientDigest,
    String nonce, String nc, String cnonce, String qop,
    String realmName, String md5a2) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, clientDigest, nonce,
          nc, cnonce, qop, realmName, md5a2,
          HttpServletRequest.DIGEST_AUTH));
}
origin: codefollower/Tomcat-Research

/**
 * Return the <code>Principal</code> associated with the specified username
 * and digest, if there is one; otherwise return <code>null</code>.
 *
 * @param username      Username of the <code>Principal</code> to look up
 * @param clientDigest  Digest to use in authenticating this username
 * @param nonce         Server generated nonce
 * @param nc            Nonce count
 * @param cnonce        Client generated nonce
 * @param qop           Quality of protection applied to the message
 * @param realmName     Realm name
 * @param md5a2         Second MD5 digest used to calculate the digest
 *                          MD5(Method + ":" + uri)
 */
@Override
public Principal authenticate(String username, String clientDigest,
    String nonce, String nc, String cnonce, String qop,
    String realmName, String md5a2) {
  return authenticate(username,
      new JAASCallbackHandler(this, username, clientDigest, nonce,
          nc, cnonce, qop, realmName, md5a2,
          HttpServletRequest.DIGEST_AUTH));
}
org.apache.catalina.realmJAASCallbackHandler

Javadoc

Implementation of the JAAS CallbackHandler interface, used to negotiate delivery of the username and credentials that were specified to our constructor. No interaction with the user is required (or possible).

This CallbackHandler will pre-digest the supplied password, if required by the <Realm> element in server.xml.

At present, JAASCallbackHandler knows how to handle callbacks of type javax.security.auth.callback.NameCallback and javax.security.auth.callback.PasswordCallback.

Most used methods

  • <init>
    Construct a callback handler configured with the specified values.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • From CI to AI: The AI layer in your organization
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