Java Code Examples for org.apache.hadoop.security.token.TokenRenewer

The following examples show how to use org.apache.hadoop.security.token.TokenRenewer. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Test
public void testSPI() {
    ServiceLoader<TokenRenewer> tokenRenewers = ServiceLoader.load(TokenRenewer.class);
    for (TokenRenewer tokenRenewer : tokenRenewers) {
        if (tokenRenewer.handleKind(EsTokenIdentifier.KIND_NAME)) {
            return;
        }
    }
    Assert.fail("Could not find token renewer for " + EsTokenIdentifier.KIND_NAME);
}