Code Review
/
nonrtric
/
plt
/
ranpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve Test coverage of pmproducer
[nonrtric/plt/ranpm.git]
/
pmproducer
/
src
/
main
/
java
/
org
/
oran
/
pmproducer
/
oauth2
/
SecurityContext.java
diff --git
a/pmproducer/src/main/java/org/oran/pmproducer/oauth2/SecurityContext.java
b/pmproducer/src/main/java/org/oran/pmproducer/oauth2/SecurityContext.java
index
936d4a9
..
5633b37
100644
(file)
--- a/
pmproducer/src/main/java/org/oran/pmproducer/oauth2/SecurityContext.java
+++ b/
pmproducer/src/main/java/org/oran/pmproducer/oauth2/SecurityContext.java
@@
-49,10
+49,11
@@
public class SecurityContext {
private static SecurityContext instance;
@Setter
private static SecurityContext instance;
@Setter
+ @Getter
private Path authTokenFilePath;
public SecurityContext(@Value("${app.auth-token-file}") String authTokenFilename) {
private Path authTokenFilePath;
public SecurityContext(@Value("${app.auth-token-file}") String authTokenFilename) {
- instance = this;
+ instance = this;
//NOSONAR
if (!authTokenFilename.isEmpty()) {
this.authTokenFilePath = Path.of(authTokenFilename);
}
if (!authTokenFilename.isEmpty()) {
this.authTokenFilePath = Path.of(authTokenFilename);
}