use of org.apache.accumulo.core.securityImpl.thrift.TAuthenticationTokenIdentifier in project accumulo by apache.
the class ThriftMessageUtilTest method setup.
@BeforeEach
public void setup() throws IOException {
msg = new TAuthenticationTokenIdentifier("principal");
util = new ThriftMessageUtil();
}
use of org.apache.accumulo.core.securityImpl.thrift.TAuthenticationTokenIdentifier in project accumulo by apache.
the class AuthenticationTokenIdentifier method createTAuthIdentifier.
public static TAuthenticationTokenIdentifier createTAuthIdentifier(String principal, int keyId, long issueDate, long expirationDate, String instanceId) {
TAuthenticationTokenIdentifier tIdentifier = new TAuthenticationTokenIdentifier(principal);
tIdentifier.setKeyId(keyId);
tIdentifier.setIssueDate(issueDate);
tIdentifier.setExpirationDate(expirationDate);
tIdentifier.setInstanceId(instanceId);
return tIdentifier;
}
Aggregations