public class SessionUtils extends Object
| Constructor and Description |
|---|
SessionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addServiceToToken(String tokenStr,
String tokenService)
Add a given service to delegation token string.
|
static String |
getTokenStrForm(String tokenSignature)
Get the string form of the token given a token signature.
|
static void |
setTokenStr(org.apache.hadoop.security.UserGroupInformation ugi,
String tokenStr,
String tokenService)
Create a delegation token object for the given token string and service.
|
public static String getTokenStrForm(String tokenSignature) throws IOException
tokenSignature - IOExceptionpublic static void setTokenStr(org.apache.hadoop.security.UserGroupInformation ugi,
String tokenStr,
String tokenService)
throws IOException
ugi - tokenStr - tokenService - IOExceptionpublic static String addServiceToToken(String tokenStr, String tokenService) throws IOException
tokenStr - tokenService - IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.