Top Description Fields Constructors Methods
waffle.servlet

public Class NegotiateRequestWrapper

extends HttpServletRequestWrapper
Class Inheritance
Imports
java.security.Principal, javax.servlet.http.HttpServletRequest, .HttpServletRequestWrapper

Negotiate Request wrapper.
Author
dblock[at]dblock[dot]org

Field Summary

Modifier and TypeField and Description
private final WindowsPrincipal
principal

The principal.

Constructor Summary

AccessConstructor and Description
public
NegotiateRequestWrapper(final HttpServletRequest
the new request
newRequest
,
final WindowsPrincipal
the new principal
newPrincipal
)

Instantiates a new negotiate request wrapper.

Method Summary

Modifier and TypeMethod and Description
public String
public String
public Principal
public boolean

Returns:

true, if is user in role
isUserInRole
(final String
the role
role
)

Overrides javax.servlet.http.HttpServletRequestWrapper.isUserInRole.

Implements javax.servlet.http.HttpServletRequest.isUserInRole.

Returns true if the user is in a given role.
Inherited from javax.servlet.http.HttpServletRequestWrapper:
authenticatechangeSessionIdgetContextPathgetCookiesgetDateHeadergetHeadergetHeaderNamesgetHeadersgetHttpServletMappinggetIntHeadergetMethodgetPartgetPartsgetPathInfogetPathTranslatedgetQueryStringgetRequestedSessionIdgetRequestURIgetRequestURLgetServletPathgetSessiongetSessiongetTrailerFieldsisRequestedSessionIdFromCookieisRequestedSessionIdFromURLisRequestedSessionIdFromUrlisRequestedSessionIdValidisTrailerFieldsReadyloginlogoutnewPushBuilderupgrade

Field Detail

principalback to summary
private final WindowsPrincipal principal

The principal.

Constructor Detail

NegotiateRequestWrapperback to summary
public NegotiateRequestWrapper(final HttpServletRequest newRequest, final WindowsPrincipal newPrincipal)

Instantiates a new negotiate request wrapper.

Parameters
newRequest:HttpServletRequest

the new request

newPrincipal:WindowsPrincipal

the new principal

Method Detail

getAuthTypeback to summary
public String getAuthType()

Overrides javax.servlet.http.HttpServletRequestWrapper.getAuthType.

Implements javax.servlet.http.HttpServletRequest.getAuthType.

Authentication type.

Returns:String

the auth type

Annotations
@Override
getRemoteUserback to summary
public String getRemoteUser()

Overrides javax.servlet.http.HttpServletRequestWrapper.getRemoteUser.

Implements javax.servlet.http.HttpServletRequest.getRemoteUser.

Remote username.

Returns:String

the remote user

Annotations
@Override
getUserPrincipalback to summary
public Principal getUserPrincipal()

Overrides javax.servlet.http.HttpServletRequestWrapper.getUserPrincipal.

Implements javax.servlet.http.HttpServletRequest.getUserPrincipal.

User principal.

Returns:Principal

the user principal

Annotations
@Override
isUserInRoleback to summary
public boolean isUserInRole(final String role)

Overrides javax.servlet.http.HttpServletRequestWrapper.isUserInRole.

Implements javax.servlet.http.HttpServletRequest.isUserInRole.

Returns true if the user is in a given role.

Parameters
role:String

the role

Returns:boolean

true, if is user in role

Annotations
@Override