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

How to use
cleanClientSubject
method
in
javax.security.enterprise.authentication.mechanism.http.HttpMessageContext

Best Java code snippets using javax.security.enterprise.authentication.mechanism.http.HttpMessageContext.cleanClientSubject (Showing top 8 results out of 315)

origin: javax/javaee-web-api

/**
 * Remove mechanism specific principals and credentials from the subject and any other state the mechanism
 * might have used.
 * 
 * <p>
 * This method is called in response to {@link HttpServletRequest#logout()} and gives the authentication mechanism
 * the option to remove any state associated with an earlier established authenticated identity. For example, an
 * authentication mechanism that stores state within a cookie can send remove that cookie here.
 * 
 * @param request contains the request the client has made
 * @param response contains the response that will be send to the client
 * @param httpMessageContext context for interacting with the container
 */
default void cleanSubject(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) {
  httpMessageContext.cleanClientSubject();
}
origin: javax.security.enterprise/javax.security.enterprise-api

/**
 * Remove mechanism specific principals and credentials from the subject and any other state the mechanism
 * might have used.
 * 
 * <p>
 * This method is called in response to {@link HttpServletRequest#logout()} and gives the authentication mechanism
 * the option to remove any state associated with an earlier established authenticated identity. For example, an
 * authentication mechanism that stores state within a cookie can send remove that cookie here.
 * 
 * @param request contains the request the client has made
 * @param response contains the response that will be send to the client
 * @param httpMessageContext context for interacting with the container
 */
default void cleanSubject(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) {
  httpMessageContext.cleanClientSubject();
}
origin: jakarta.security.enterprise/jakarta.security.enterprise-api

/**
 * Remove mechanism specific principals and credentials from the subject and any other state the mechanism
 * might have used.
 * 
 * <p>
 * This method is called in response to {@link HttpServletRequest#logout()} and gives the authentication mechanism
 * the option to remove any state associated with an earlier established authenticated identity. For example, an
 * authentication mechanism that stores state within a cookie can send remove that cookie here.
 * 
 * @param request contains the request the client has made
 * @param response contains the response that will be send to the client
 * @param httpMessageContext context for interacting with the container
 */
default void cleanSubject(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) {
  httpMessageContext.cleanClientSubject();
}
origin: jboss/jboss-javaee-specs

/**
 * Remove mechanism specific principals and credentials from the subject and any other state the mechanism
 * might have used.
 * 
 * <p>
 * This method is called in response to {@link HttpServletRequest#logout()} and gives the authentication mechanism
 * the option to remove any state associated with an earlier established authenticated identity. For example, an
 * authentication mechanism that stores state within a cookie can send remove that cookie here.
 * 
 * @param request contains the request the client has made
 * @param response contains the response that will be send to the client
 * @param httpMessageContext context for interacting with the container
 */
default void cleanSubject(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) {
  httpMessageContext.cleanClientSubject();
}
origin: jakarta.security.enterprise/jakarta.security.enterprise-api

@Override
public void cleanClientSubject() {
  getWrapped().cleanClientSubject();
}
origin: javax/javaee-web-api

@Override
public void cleanClientSubject() {
  getWrapped().cleanClientSubject();
}
origin: javax.security.enterprise/javax.security.enterprise-api

@Override
public void cleanClientSubject() {
  getWrapped().cleanClientSubject();
}
origin: jboss/jboss-javaee-specs

@Override
public void cleanClientSubject() {
  getWrapped().cleanClientSubject();
}
javax.security.enterprise.authentication.mechanism.httpHttpMessageContextcleanClientSubject

Javadoc

Convenience method to clean the subject associated with this context.

Cleaning this subject is done as defined by the Servlet Container Profile of JASPIC (JSR 196) for the ServerAuthModule#cleanSubject method and the HttpAuthenticationMechanism#cleanSubject(HttpServletRequest,HttpServletResponse,HttpMessageContext) method defined by this specification.

Popular methods of HttpMessageContext

  • doNothing
    Instructs the container to "do nothing". When intending to do nothing, a JSR 375 authentication mech
  • getRequest
    Returns the request object associated with the current request.
  • getResponse
    Returns the response object associated with the current request.
  • isProtected
    Checks if the currently requested resource is protected or not. A protected resource is a resource (
  • notifyContainerAboutLogin
    Convenience method intended to pass the CredentialValidationResult result of an identity store direc
  • responseUnauthorized
    Sets the response status to 401 (unauthorized). As a convenience this method returns SEND_FAILURE, s
  • forward
    Forwards to another resource (servlet, JSP file, or HTML file) on the server. As a convenience this
  • getAuthParameters
    Returns the parameters that were provided with the SecurityContext#authenticate(AuthParameters) call
  • getCallerPrincipal
    Gets the Principal set by a call to notifyContainerAboutLogin().
  • getClientSubject
    Returns the subject for which authentication is to take place.Note: This is a low level object that
  • getGroups
    Gets the groups set by a call to notifyContainerAboutLogin().
  • getHandler
    Returns the low level JSR 196 handler that the runtime provided when creating this HttpMessageContex
  • getGroups,
  • getHandler,
  • getMessageInfo,
  • isAuthenticationRequest,
  • redirect,
  • withRequest,
  • isRegisterSession,
  • responseNotFound,
  • setRegisterSession

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ImageIO (javax.imageio)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JButton (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top Vim plugins
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