Open Kilda Java Documentation
ApplicationService.java
Go to the documentation of this file.
1
package
org.openkilda.service;
2
3
import
static
java.util.Base64.getEncoder;
4
5
import
org
.springframework.beans.factory.annotation.Autowired;
6
import
org
.springframework.stereotype.Service;
7
8
import
org
.
openkilda
.
utility
.
ApplicationProperties
;
9
10
@Service
11
public
class
ApplicationService
{
12
13
@Autowired
14
private
ApplicationProperties
applicationProperties;
15
16
public
String
getAuthHeader
() {
17
String
auth
= applicationProperties.getKildaUsername() +
":"
18
+ applicationProperties.getKildaPassword();
19
20
return
"Basic "
+ getEncoder().encodeToString(
auth
.getBytes());
21
}
22
}
neo4-topology.auth
tuple auth
Definition:
neo4-topology.py:23
org
org.openkilda.service.ApplicationService.getAuthHeader
String getAuthHeader()
Definition:
ApplicationService.java:16
org.openkilda.utility.ApplicationProperties
Definition:
ApplicationProperties.java:18
org.openkilda.service.ApplicationService
Definition:
ApplicationService.java:11
org.openkilda.utility
Definition:
ApplicationProperties.java:1
org.openkilda
open-kilda-develop
services
src
openkilda-gui
src
main
java
org
openkilda
service
ApplicationService.java
Generated by
1.8.14