-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix #925: Audit type missing in AuditingServiceBehavior - Add AuditType enum - Replace the hardcoded strings for AuditDetail type in several classes - Add javadoc
- Loading branch information
Showing
5 changed files
with
78 additions
and
13 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
64 changes: 64 additions & 0 deletions
64
.../main/java/io/getlime/security/powerauth/app/server/service/behavior/tasks/AuditType.java
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* PowerAuth Server and related software components | ||
* Copyright (C) 2023 Wultra s.r.o. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* 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 io.getlime.security.powerauth.app.server.service.behavior.tasks; | ||
|
||
/** | ||
* This enum represents different types of audits. | ||
* | ||
* @author Jan Dusil, jan.dusil@wultra.com | ||
*/ | ||
enum AuditType { | ||
|
||
/** | ||
* Audit type for signatures. | ||
*/ | ||
SIGNATURE("signature"), | ||
|
||
/** | ||
* Audit type for operations. | ||
*/ | ||
OPERATION("operation"), | ||
|
||
/** | ||
* Audit type for activations. | ||
*/ | ||
ACTIVATION("activation"); | ||
|
||
/** | ||
* The code associated with each audit type. | ||
*/ | ||
private final String code; | ||
|
||
/** | ||
* Constructor to initialize the audit type with its code. | ||
* | ||
* @param code the code of the audit type | ||
*/ | ||
AuditType(final String code) { | ||
this.code = code; | ||
} | ||
|
||
/** | ||
* Get the code of the audit type. | ||
* | ||
* @return the code of the audit type | ||
*/ | ||
public String getCode() { | ||
return this.code; | ||
} | ||
} |
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