List of usage examples for org.apache.hadoop.security.token SecretManager createSecretKey
protected static SecretKey createSecretKey(byte[] key)
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); }