mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-31 03:39:14 +01:00
12 lines
285 B
Java
12 lines
285 B
Java
package sonia.scm.security;
|
|
|
|
import java.security.SecureRandom;
|
|
|
|
public class SecureKeyTestUtil {
|
|
public static SecureKey createSecureKey() {
|
|
byte[] bytes = new byte[32];
|
|
new SecureRandom().nextBytes(bytes);
|
|
return new SecureKey(bytes, System.currentTimeMillis());
|
|
}
|
|
}
|