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
- IOException
public static void setTokenStr(org.apache.hadoop.security.UserGroupInformation ugi, String tokenStr, String tokenService) throws IOException
ugi
- tokenStr
- tokenService
- IOException
public static String addServiceToToken(String tokenStr, String tokenService) throws IOException
tokenStr
- tokenService
- IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.