public class RouterSecurityManager
extends java.lang.Object
| Constructor | Description |
|---|---|
RouterSecurityManager(org.apache.hadoop.conf.Configuration conf) |
|
RouterSecurityManager(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> dtSecretManager) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> token) |
|
static org.apache.hadoop.security.Credentials |
createCredentials(Router router,
org.apache.hadoop.security.UserGroupInformation ugi,
java.lang.String renewer) |
A utility method for creating credentials.
|
org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> |
getDelegationToken(org.apache.hadoop.io.Text renewer) |
|
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> |
getSecretManager() |
|
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> token) |
|
void |
stop() |
|
void |
verifyToken(org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier identifier,
byte[] password) |
Delegation token verification.
|
public RouterSecurityManager(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOException@VisibleForTesting public RouterSecurityManager(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> dtSecretManager)
public org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> getSecretManager()
public void stop()
public org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> getDelegationToken(org.apache.hadoop.io.Text renewer)
throws java.io.IOException
renewer - Renewer informationjava.io.IOException - on errorpublic long renewDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> token)
throws org.apache.hadoop.security.token.SecretManager.InvalidToken,
java.io.IOException
token - token to reneworg.apache.hadoop.security.token.SecretManager.InvalidToken - if token is invalidjava.io.IOException - on errorspublic void cancelDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> token)
throws java.io.IOException
token - token to canceljava.io.IOException - on errorpublic static org.apache.hadoop.security.Credentials createCredentials(Router router, org.apache.hadoop.security.UserGroupInformation ugi, java.lang.String renewer) throws java.io.IOException
router - the router object.ugi - object with username and group information for the given user.renewer - the renewer for the token.java.io.IOException - if error occurs while obtaining the credentials.public void verifyToken(org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier identifier,
byte[] password)
throws org.apache.hadoop.security.token.SecretManager.InvalidToken
identifier - the delegation token identifier.password - the password in the token.org.apache.hadoop.security.token.SecretManager.InvalidToken - if password doesn't match.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.