mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-04 05:39:11 +01:00
added cli sub command to generate unique keys
This commit is contained in:
@@ -46,6 +46,9 @@ public class RestSecurityUrlProvider implements SecurityUrlProvider
|
||||
/** Field description */
|
||||
private static final String PATH_ENCRYPT = "security/cipher/encrypt";
|
||||
|
||||
/** Field description */
|
||||
private static final String PATH_KEY = "security/key";
|
||||
|
||||
//~--- constructors ---------------------------------------------------------
|
||||
|
||||
/**
|
||||
@@ -73,6 +76,18 @@ public class RestSecurityUrlProvider implements SecurityUrlProvider
|
||||
return HttpUtil.append(baseUrl, PATH_ENCRYPT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String getGenerateKeyUrl()
|
||||
{
|
||||
return HttpUtil.append(baseUrl, PATH_KEY);
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
|
||||
@@ -39,6 +39,16 @@ package sonia.scm.url;
|
||||
public interface SecurityUrlProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getGenerateKeyUrl();
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user