-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from /issues/146-refactor-structure
Fix #146: Refactor package and class structure
- Loading branch information
Showing
17 changed files
with
51 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,14 @@ | |
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.wultra.security.userdatastore.userclaims; | ||
package com.wultra.security.userdatastore.model.entity; | ||
|
||
/** | ||
* Encryption mode. | ||
* | ||
* @author Lubos Racansky, [email protected] | ||
*/ | ||
enum EncryptionMode { | ||
public enum EncryptionMode { | ||
|
||
/** | ||
* No encryption. | ||
|
@@ -32,5 +32,5 @@ enum EncryptionMode { | |
/** | ||
* AES encryption with HMAC-based index. | ||
*/ | ||
AES_HMAC; | ||
AES_HMAC | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,27 +15,27 @@ | |
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.wultra.security.userdatastore.userclaims; | ||
package com.wultra.security.userdatastore.model.error; | ||
|
||
/** | ||
* Exception to be thrown when the requested entity is not found. | ||
* Exception to be thrown when the requested claim is not found. | ||
* | ||
* @author Lubos Racansky, [email protected] | ||
*/ | ||
class NotFoundException extends RuntimeException { | ||
public class ClaimNotFoundException extends RuntimeException { | ||
|
||
/** | ||
* No-arg constructor. | ||
*/ | ||
public NotFoundException() { | ||
public ClaimNotFoundException() { | ||
} | ||
|
||
/** | ||
* Constructs a new exception with the specified message. | ||
* | ||
* @param message message | ||
*/ | ||
public NotFoundException(String message) { | ||
public ClaimNotFoundException(String message) { | ||
super(message); | ||
} | ||
|
||
|
@@ -44,7 +44,7 @@ public NotFoundException(String message) { | |
* | ||
* @param cause cause | ||
*/ | ||
public NotFoundException(Throwable cause) { | ||
public ClaimNotFoundException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,14 @@ | |
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.wultra.security.userdatastore.userclaims; | ||
package com.wultra.security.userdatastore.model.error; | ||
|
||
/** | ||
* Exception to be thrown when there is a problem at encryption layer. | ||
* | ||
* @author Lubos Racansky, [email protected] | ||
*/ | ||
class EncryptionException extends RuntimeException { | ||
public class EncryptionException extends RuntimeException { | ||
|
||
/** | ||
* No-arg constructor. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,14 @@ | |
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.wultra.security.userdatastore.userclaims; | ||
package com.wultra.security.userdatastore.model.error; | ||
|
||
/** | ||
* Exception to be thrown when the user's request is invalid. | ||
* | ||
* @author Lubos Racansky, [email protected] | ||
*/ | ||
class InvalidRequestException extends RuntimeException { | ||
public class InvalidRequestException extends RuntimeException { | ||
|
||
/** | ||
* No-arg constructor. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,9 @@ | |
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.wultra.security.userdatastore.userclaims; | ||
package com.wultra.security.userdatastore.model.repository; | ||
|
||
import com.wultra.security.userdatastore.model.entity.UserClaimsEntity; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
|
@@ -26,6 +27,6 @@ | |
* @author Lubos Racansky [email protected] | ||
*/ | ||
@Repository | ||
interface UserClaimsRepository extends JpaRepository<UserClaimsEntity, String> { | ||
public interface UserClaimsRepository extends JpaRepository<UserClaimsEntity, String> { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters