Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
move services to their own package
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Linsley <[email protected]>
  • Loading branch information
dlinsley committed Oct 1, 2017
1 parent a02d900 commit 7ff0c35
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.vmware.o11n.plugin.crypto.service.CryptoCertificateService;
import com.vmware.o11n.plugin.sdk.annotation.VsoConstructor;
import com.vmware.o11n.plugin.sdk.annotation.VsoMethod;
import com.vmware.o11n.plugin.sdk.annotation.VsoObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.vmware.o11n.plugin.crypto.service.CryptoCertificateService;
import com.vmware.o11n.plugin.sdk.annotation.VsoMethod;
import com.vmware.o11n.plugin.sdk.annotation.VsoObject;
import com.vmware.o11n.plugin.sdk.spring.AbstractSpringPluginFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.vmware.o11n.plugin.crypto.service.CryptoDigestService;
import com.vmware.o11n.plugin.sdk.annotation.VsoMethod;
import com.vmware.o11n.plugin.sdk.annotation.VsoObject;
import com.vmware.o11n.plugin.sdk.annotation.VsoParam;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.vmware.o11n.plugin.crypto.service.CryptoEncodingService;
import com.vmware.o11n.plugin.sdk.annotation.VsoMethod;
import com.vmware.o11n.plugin.sdk.annotation.VsoObject;
import com.vmware.o11n.plugin.sdk.annotation.VsoParam;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.vmware.o11n.plugin.crypto.service.CryptoEncryptionService;
import com.vmware.o11n.plugin.sdk.annotation.VsoMethod;
import com.vmware.o11n.plugin.sdk.annotation.VsoObject;
import com.vmware.o11n.plugin.sdk.annotation.VsoParam;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.vmware.o11n.plugin.crypto.service.CryptoRSAService;
import com.vmware.o11n.plugin.sdk.annotation.VsoMethod;
import com.vmware.o11n.plugin.sdk.annotation.VsoObject;
import com.vmware.o11n.plugin.sdk.annotation.VsoParam;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2017 VMware, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-2-Clause
*/
package com.vmware.o11n.plugin.crypto.model;
package com.vmware.o11n.plugin.crypto.service;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -39,6 +39,8 @@
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.vmware.o11n.plugin.crypto.model.CryptoUtil;

@Component
public class CryptoCertificateService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2017 VMware, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-2-Clause
*/
package com.vmware.o11n.plugin.crypto.model;
package com.vmware.o11n.plugin.crypto.service;

import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.digest.DigestUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2017 VMware, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-2-Clause
*/
package com.vmware.o11n.plugin.crypto.model;
package com.vmware.o11n.plugin.crypto.service;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2017 VMware, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-2-Clause
*/
package com.vmware.o11n.plugin.crypto.model;
package com.vmware.o11n.plugin.crypto.service;

import java.io.IOException;
import java.security.InvalidAlgorithmParameterException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2017 VMware, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-2-Clause
*/
package com.vmware.o11n.plugin.crypto.model;
package com.vmware.o11n.plugin.crypto.service;

import java.io.IOException;
import java.security.InvalidKeyException;
Expand All @@ -26,6 +26,8 @@
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.vmware.o11n.plugin.crypto.model.CryptoUtil;

@Component
public class CryptoRSAService {
private final Logger log = LoggerFactory.getLogger(CryptoRSAService.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

import org.junit.Test;

import com.vmware.o11n.plugin.crypto.model.CryptoCertificateService;
import com.vmware.o11n.plugin.crypto.model.CryptoUtil;
import com.vmware.o11n.plugin.crypto.service.CryptoCertificateService;


public class CryptoCertificateServiceTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import org.apache.commons.codec.DecoderException;
import org.junit.Test;

import com.vmware.o11n.plugin.crypto.model.CryptoDigestService;
import com.vmware.o11n.plugin.crypto.model.CryptoEncodingService;
import com.vmware.o11n.plugin.crypto.service.CryptoDigestService;
import com.vmware.o11n.plugin.crypto.service.CryptoEncodingService;

public class CryptoDigestServiceTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import org.apache.commons.codec.DecoderException;
import org.junit.Test;

import com.vmware.o11n.plugin.crypto.model.CryptoEncodingService;
import com.vmware.o11n.plugin.crypto.model.CryptoEncryptionService;
import com.vmware.o11n.plugin.crypto.service.CryptoEncodingService;
import com.vmware.o11n.plugin.crypto.service.CryptoEncryptionService;

public class CryptoEncodingServiceTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
import org.apache.commons.codec.binary.Base64;
import org.junit.Test;

import com.vmware.o11n.plugin.crypto.model.CryptoDigestService;
import com.vmware.o11n.plugin.crypto.model.CryptoEncodingService;
import com.vmware.o11n.plugin.crypto.model.CryptoEncryptionService;
import com.vmware.o11n.plugin.crypto.service.CryptoDigestService;
import com.vmware.o11n.plugin.crypto.service.CryptoEncodingService;
import com.vmware.o11n.plugin.crypto.service.CryptoEncryptionService;

public class CryptoEncryptionServiceTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

import org.junit.Test;

import com.vmware.o11n.plugin.crypto.model.CryptoEncryptionService;
import com.vmware.o11n.plugin.crypto.model.CryptoRSAService;
import com.vmware.o11n.plugin.crypto.service.CryptoEncryptionService;
import com.vmware.o11n.plugin.crypto.service.CryptoRSAService;

public class CryptoRSAServiceTest {

Expand Down

0 comments on commit 7ff0c35

Please sign in to comment.