Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
81d3184d
Commit
81d3184d
authored
Apr 11, 2017
by
nixonrodrigues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1727: Mask userdetails in quick Start utility
parent
c9a91264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
AuthenticationUtil.java
.../main/java/org/apache/atlas/utils/AuthenticationUtil.java
+4
-8
No files found.
common/src/main/java/org/apache/atlas/utils/AuthenticationUtil.java
View file @
81d3184d
...
...
@@ -22,9 +22,7 @@ import org.apache.atlas.AtlasException;
import
org.apache.commons.configuration.Configuration
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.io.BufferedReader
;
import
java.io.InputStreamReader
;
import
java.io.Console
;
/**
* Util class for Authentication.
...
...
@@ -54,11 +52,9 @@ public final class AuthenticationUtil {
String
password
=
null
;
try
{
BufferedReader
bufferRead
=
new
BufferedReader
(
new
InputStreamReader
(
System
.
in
));
System
.
out
.
println
(
"Enter username for atlas :-"
);
username
=
bufferRead
.
readLine
();
System
.
out
.
println
(
"Enter password for atlas :-"
);
password
=
bufferRead
.
readLine
();
Console
console
=
System
.
console
();
username
=
console
.
readLine
(
"Enter username for atlas :- "
);
password
=
new
String
(
console
.
readPassword
(
"Enter password for atlas :- "
));
}
catch
(
Exception
e
)
{
System
.
out
.
print
(
"Error while reading "
);
System
.
exit
(
1
);
...
...
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