mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
javadoc
This commit is contained in:
@@ -49,6 +49,7 @@ import javax.ws.rs.Produces;
|
|||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Rest resource to encrypt values.
|
||||||
*
|
*
|
||||||
* @author Sebastian Sdorra
|
* @author Sebastian Sdorra
|
||||||
* @since 1.41
|
* @since 1.41
|
||||||
@@ -58,12 +59,17 @@ public class CipherResource
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Encrypts the request body and returns an encrypted string. This method can
|
||||||
|
* only executed with administration privileges.<br />
|
||||||
|
* <br />
|
||||||
|
* <ul>
|
||||||
|
* <li>200 success</li>
|
||||||
|
* <li>500 internal server error</li>
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
|
* @param value value to encrypt
|
||||||
*
|
*
|
||||||
* @param value
|
* @return unique key
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
@Path("encrypt")
|
@Path("encrypt")
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ import javax.ws.rs.Produces;
|
|||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Rest resource to generate unique keys.
|
||||||
*
|
*
|
||||||
* @author Sebastian Sdorra
|
* @author Sebastian Sdorra
|
||||||
* @since 1.41
|
* @since 1.41
|
||||||
@@ -57,10 +58,10 @@ public class KeyResource
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs ...
|
* Constructs a new KeyResource.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param keyGenerator
|
* @param keyGenerator key generator
|
||||||
*/
|
*/
|
||||||
@Inject
|
@Inject
|
||||||
public KeyResource(KeyGenerator keyGenerator)
|
public KeyResource(KeyGenerator keyGenerator)
|
||||||
@@ -71,10 +72,15 @@ public class KeyResource
|
|||||||
//~--- methods --------------------------------------------------------------
|
//~--- methods --------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Generates a unique key. This method can only executed with administration
|
||||||
|
* privileges.<br />
|
||||||
|
* <br />
|
||||||
|
* <ul>
|
||||||
|
* <li>200 success</li>
|
||||||
|
* <li>500 internal server error</li>
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
*
|
* @return unique key
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
@GET
|
@GET
|
||||||
@Produces(MediaType.TEXT_PLAIN)
|
@Produces(MediaType.TEXT_PLAIN)
|
||||||
|
|||||||
Reference in New Issue
Block a user