}
public static TCredentials fromByteArray(byte[] serializedCredential) throws AccumuloSecurityException {
if (serializedCredential == null)
return null;
TDeserializer td = new TDeserializer();
try {
TCredentials toRet = new TCredentials();
td.deserialize(toRet, serializedCredential);
return toRet;
} catch (TException e) {
// This really shouldn't happen
log.error(e, e);
throw new AccumuloSecurityException("unknown", SecurityErrorCode.SERIALIZATION_ERROR);