Use maven plugins from AAI-2198 to do batch reformat of aai-auth
to consistent code style.
Change-Id: I7ea7c6e991b81b3d8b167bdd0889aa5674a42001
Issue-ID: AAI-1523
Signed-off-by: Keong Lim <keong.lim@huawei.com>
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* limitations under the License.
* ============LICENSE_END=========================================================
*/
* limitations under the License.
* ============LICENSE_END=========================================================
*/
package org.onap.aaiauth.auth;
import org.apache.http.cookie.Cookie;
package org.onap.aaiauth.auth;
import org.apache.http.cookie.Cookie;
- * Returns true if the user is allowed to access a function.
+ * Returns true if the user is allowed to access a function.
+ *
* @param authUser
* - String value of the user.
* @param authAction
* @param authUser
* - String value of the user.
* @param authAction
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* limitations under the License.
* ============LICENSE_END=========================================================
*/
* limitations under the License.
* ============LICENSE_END=========================================================
*/
package org.onap.aaiauth.auth;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
package org.onap.aaiauth.auth;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.onap.aaiauth.util.AuthConstants;
+import org.onap.aaiauth.util.AuthConstants;
/**
* Loads the auth file and caches a list of authorized users.
/**
* Loads the auth file and caches a list of authorized users.
- * - Absolute path of the file where authorized users are listed.
+ * - Absolute path of the file where authorized users are listed.
*/
public synchronized void loadUsers(String authFilename) throws Exception {
users = new HashMap<>();
*/
public synchronized void loadUsers(String authFilename) throws Exception {
users = new HashMap<>();
/**
* Returns true if the user has permissions for the function, otherwise returns false.
/**
* Returns true if the user has permissions for the function, otherwise returns false.
* @param checkFunc
* - String value of the function.
*/
* @param checkFunc
* - String value of the function.
*/
/**
* Remove the function from the user's list of allowed functions.
/**
* Remove the function from the user's list of allowed functions.
* @param delFunc
* - String value of the function.
*/
* @param delFunc
* - String value of the function.
*/
/**
* Returns true if the user has permissions to use the function, otherwise returns false.
/**
* Returns true if the user has permissions to use the function, otherwise returns false.
* @param afunc
* - String value of the function.
*/
* @param afunc
* - String value of the function.
*/
/**
* Returns true if the user is allowed to access a function.
/**
* Returns true if the user is allowed to access a function.
* @param username
* - String value of user
* @param authFunction
* @param username
* - String value of user
* @param authFunction
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* limitations under the License.
* ============LICENSE_END=========================================================
*/
* limitations under the License.
* ============LICENSE_END=========================================================
*/
package org.onap.aaiauth.util;
public class AuthConstants {
package org.onap.aaiauth.util;
public class AuthConstants {