Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dwh-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AKTIN
dwh-api
Commits
67596605
Commit
67596605
authored
Apr 14, 2016
by
rwm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authenticator interface added
parent
5cd3b54c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
src/main/java/org/aktin/dwh/Authenticator.java
src/main/java/org/aktin/dwh/Authenticator.java
+23
-0
No files found.
src/main/java/org/aktin/dwh/Authenticator.java
0 → 100644
View file @
67596605
package
org.aktin.dwh
;
public
interface
Authenticator
{
/**
* Determine whether the given user and password combination is granted
* the given role.
* @param user user name
* @param password password
* @param role role
* @return true if all criteria are matched, false otherwise
*/
boolean
verifyUserRole
(
String
user
,
char
[]
password
,
String
role
);
/**
* Determine whether a given user and password combination
* has admin privileges.
*
* @param user user name
* @param password password
* @return true if the user is admin and the password is correct
*/
boolean
verifyAdmin
(
String
user
,
char
[]
password
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment