You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2021/05/26 06:06:13 UTC

[isis] 03/09: ISIS-2698: removes PasswordEncryptionServiceNone as this is unused code

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch ISIS-2698
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 2717a779f680a7fcce1edb2d8db828b10fdaa3b8
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed May 26 06:40:12 2021 +0100

    ISIS-2698: removes PasswordEncryptionServiceNone as this is unused code
---
 .../encryption/PasswordEncryptionServiceNone.java  | 42 ----------------------
 1 file changed, 42 deletions(-)

diff --git a/extensions/security/secman/api/src/main/java/org/apache/isis/extensions/secman/api/encryption/PasswordEncryptionServiceNone.java b/extensions/security/secman/api/src/main/java/org/apache/isis/extensions/secman/api/encryption/PasswordEncryptionServiceNone.java
deleted file mode 100644
index 80b7996..0000000
--- a/extensions/security/secman/api/src/main/java/org/apache/isis/extensions/secman/api/encryption/PasswordEncryptionServiceNone.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); 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
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-package org.apache.isis.extensions.secman.api.encryption;
-
-import java.util.Objects;
-
-import org.apache.isis.applib.annotation.Programmatic;
-
-/**
- * @since 2.0 {@index}
- */
-public class PasswordEncryptionServiceNone implements PasswordEncryptionService {
-
-    @Programmatic
-    @Override
-    public String encrypt(String password) {
-        return password;
-    }
-
-    @Programmatic
-    @Override
-    public boolean matches(String candidate, String encrypted) {
-        return Objects.equals(candidate, encrypted);
-    }
-
-}