public final class HttpAuthUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpAuthUtils.HttpKerberosClientAction
We'll create an instance of this class within a doAs block so that the client's TGT credentials
can be read from the Subject
|
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORIZATION |
static String |
BASIC |
static String |
NEGOTIATE |
static String |
WWW_AUTHENTICATE |
Modifier and Type | Method and Description |
---|---|
static String |
createCookieToken(String clientUserName)
Creates and returns a HS2 cookie token.
|
static String |
getKerberosServiceTicket(String principal,
String host,
String serverHttpUrl,
boolean assumeSubject) |
static String |
getUserNameFromCookieToken(String tokenStr)
Parses a cookie token to retrieve client user name.
|
public static final String WWW_AUTHENTICATE
public static final String AUTHORIZATION
public static final String BASIC
public static final String NEGOTIATE
public static String getKerberosServiceTicket(String principal, String host, String serverHttpUrl, boolean assumeSubject) throws Exception
Exception
public static String createCookieToken(String clientUserName)
clientUserName
- Client User name.Copyright © 2017 The Apache Software Foundation. All rights reserved.