public class HiveSamlAuthTokenGenerator extends Object implements ISAMLAuthTokenGenerator
Modifier and Type | Field and Description |
---|---|
static String |
RELAY_STATE |
Modifier and Type | Method and Description |
---|---|
static ISAMLAuthTokenGenerator |
get(HiveConf conf) |
String |
get(String username,
String relayStateKey)
Get the token for a given user and relay state id.
|
static boolean |
parse(String token,
Map<String,String> kv) |
String |
validate(String encodedToken)
Validate the given token.
|
public static final String RELAY_STATE
public static ISAMLAuthTokenGenerator get(HiveConf conf)
public String get(String username, String relayStateKey)
ISAMLAuthTokenGenerator
get
in interface ISAMLAuthTokenGenerator
public String validate(String encodedToken) throws HttpSamlAuthenticationException
ISAMLAuthTokenGenerator
HttpSamlAuthenticationException
in case
of any validation errors.validate
in interface ISAMLAuthTokenGenerator
HttpSamlAuthenticationException
Copyright © 2023 The Apache Software Foundation. All rights reserved.