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

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

Introduction

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

Prototype

String COMPANY_ENCRYPTION_KEY_SIZE

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

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.  j  a v  a 2 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");
}