Example usage for com.liferay.portal.kernel.util PropsKeys COMPANY_ENCRYPTION_ALGORITHM

List of usage examples for com.liferay.portal.kernel.util PropsKeys COMPANY_ENCRYPTION_ALGORITHM

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PropsKeys COMPANY_ENCRYPTION_ALGORITHM.

Prototype

String COMPANY_ENCRYPTION_ALGORITHM

To view the source code for com.liferay.portal.kernel.util PropsKeys COMPANY_ENCRYPTION_ALGORITHM.

Click Source Link

Usage

From source file:com.liferay.petra.encryptor.EncryptorTest.java

License:Open Source License

@Before
public void setUp() {
    _props = PropsUtil.getProps();/*from  w  w w  .jav  a2  s  .  c o  m*/

    Props props = mock(Props.class);

    PropsUtil.setProps(props);

    when(props.get(Mockito.eq(PropsKeys.COMPANY_ENCRYPTION_ALGORITHM))).thenReturn("AES");

    when(props.get(Mockito.eq(PropsKeys.COMPANY_ENCRYPTION_KEY_SIZE))).thenReturn("128");
}