org.silverpeas.security.web
Class CryptoTestResources

java.lang.Object
  extended by com.silverpeas.web.TestResources
      extended by org.silverpeas.security.web.CryptoTestResources
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Named(value="testRESTResources")
public class CryptoTestResources
extends TestResources

It wraps all the resources required by the unit tests on the REST-based web services related on the security.


Field Summary
static String ACTUAL_KEY_FILE_PATH
          The path of the file storing the actual cipher key.
static String CRYPTO_WEB_PACKAGE
          The name of the Java package in which are defined the REST-based web service for the cryptographic functions.
static ResourceLocator messages
           
static String OLD_KEY_FILE_PATH
          The path of the file storing the old cipher key.
static String SPRING_CONTEXT
          The configuration file from which the Spring context must be bootstrapped.
 
Fields inherited from class com.silverpeas.web.TestResources
DEFAULT_DOMAIN, DEFAULT_LANGUAGE, TEST_RESOURCES_NAME, USER_ID_IN_TEST
 
Constructor Summary
CryptoTestResources()
           
 
Method Summary
static void generateCipherKeyFile()
           
 
Methods inherited from class com.silverpeas.web.TestResources
aUser, aUserNamed, getAccessControllerMock, getApplicationContext, getOrganizationControllerMock, getPersonalizationServiceMock, getSessionManagerMock, getSpaceAccessControllerMock, getTestResources, getTokenServiceMock, registerUser, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRYPTO_WEB_PACKAGE

public static final String CRYPTO_WEB_PACKAGE
The name of the Java package in which are defined the REST-based web service for the cryptographic functions.


SPRING_CONTEXT

public static final String SPRING_CONTEXT
The configuration file from which the Spring context must be bootstrapped.

See Also:
Constant Field Values

ACTUAL_KEY_FILE_PATH

public static final String ACTUAL_KEY_FILE_PATH
The path of the file storing the actual cipher key.


OLD_KEY_FILE_PATH

public static final String OLD_KEY_FILE_PATH
The path of the file storing the old cipher key.


messages

public static final ResourceLocator messages
Constructor Detail

CryptoTestResources

public CryptoTestResources()
Method Detail

generateCipherKeyFile

public static void generateCipherKeyFile()
                                  throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.