Files
SCM-Manager/scm-webapp/src/test/java/sonia/scm/security/SecureKeyTestUtil.java

12 lines
285 B
Java
Raw Normal View History

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());
}
}