public class CredentialHelper extends Object
Constructor and Description |
---|
CredentialHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
asBase64String(org.apache.accumulo.core.security.thrift.TCredentials cred) |
static byte[] |
asByteArray(org.apache.accumulo.core.security.thrift.TCredentials cred) |
static org.apache.accumulo.core.security.thrift.TCredentials |
create(String principal,
AuthenticationToken token,
String instanceID) |
static org.apache.accumulo.core.security.thrift.TCredentials |
createSquelchError(String principal,
AuthenticationToken token,
String instanceID) |
static AuthenticationToken |
extractToken(String tokenClass,
byte[] token) |
static AuthenticationToken |
extractToken(org.apache.accumulo.core.security.thrift.TCredentials toAuth) |
static org.apache.accumulo.core.security.thrift.TCredentials |
fromBase64String(String string) |
static org.apache.accumulo.core.security.thrift.TCredentials |
fromByteArray(byte[] serializedCredential) |
static byte[] |
toBytes(AuthenticationToken token) |
static String |
tokenAsBase64(AuthenticationToken token) |
public static org.apache.accumulo.core.security.thrift.TCredentials create(String principal, AuthenticationToken token, String instanceID) throws AccumuloSecurityException
AccumuloSecurityException
public static String asBase64String(org.apache.accumulo.core.security.thrift.TCredentials cred) throws AccumuloSecurityException
AccumuloSecurityException
public static byte[] asByteArray(org.apache.accumulo.core.security.thrift.TCredentials cred) throws AccumuloSecurityException
AccumuloSecurityException
public static org.apache.accumulo.core.security.thrift.TCredentials fromBase64String(String string) throws AccumuloSecurityException
AccumuloSecurityException
public static org.apache.accumulo.core.security.thrift.TCredentials fromByteArray(byte[] serializedCredential) throws AccumuloSecurityException
AccumuloSecurityException
public static AuthenticationToken extractToken(org.apache.accumulo.core.security.thrift.TCredentials toAuth) throws AccumuloSecurityException
AccumuloSecurityException
public static org.apache.accumulo.core.security.thrift.TCredentials createSquelchError(String principal, AuthenticationToken token, String instanceID)
public static String tokenAsBase64(AuthenticationToken token) throws AccumuloSecurityException
AccumuloSecurityException
public static byte[] toBytes(AuthenticationToken token) throws AccumuloSecurityException
AccumuloSecurityException
public static AuthenticationToken extractToken(String tokenClass, byte[] token) throws AccumuloSecurityException
AccumuloSecurityException
Copyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.