nexus site path corrected
[portal.git] / ecomp-portal-BE / src / main / java / org / openecomp / portalapp / service / sessionmgt / RemoteWebServiceCallService.java
1 /*-
2  * ================================================================================
3  * eCOMP Portal
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ================================================================================
19  */
20 package org.openecomp.portalapp.service.sessionmgt;
21
22 public interface RemoteWebServiceCallService {
23
24         /**
25          * Answers whether the specified credentials match application information
26          * in the database.
27          * 
28          * @param secretKey
29          *            Key used to decrypt passwords; ignored if null.
30          * @param requestUebKey
31          *            UEB key that identifies the application
32          * @param requesUserName
33          *            User name for the application
34          * @param requestPassword
35          *            Password for the application
36          * @return True if the UEB key and the credentials match the database
37          *         entries; else false.
38          * @throws Exception
39          *             If decryption fails.
40          */
41         public boolean verifyRESTCredential(String secretKey, String requestUebKey, String requestUserName,
42                         String requestPassword) throws Exception;
43
44 }