Example usage for org.apache.hadoop.security.token SecretManager createSecretKey

List of usage examples for org.apache.hadoop.security.token SecretManager createSecretKey

Introduction

In this page you can find the example usage for org.apache.hadoop.security.token SecretManager createSecretKey.

Prototype

protected static SecretKey createSecretKey(byte[] key) 

Source Link

Document

Convert the byte[] to a secret key

Usage

From source file:org.apache.accumulo.server.security.delegation.AuthenticationTokenSecretManager.java

License:Apache License

public static SecretKey createSecretKey(byte[] raw) {
    return SecretManager.createSecretKey(raw);
}

From source file:org.apache.tez.common.security.JobTokenSecretManager.java

License:Apache License

/**
 * Convert the byte[] to a secret key/*from ww  w. ja v a  2  s . c  om*/
 * @param key the byte[] to create the secret key from
 * @return the secret key
 */
public static SecretKey createSecretKey(byte[] key) {
    return SecretManager.createSecretKey(key);
}