Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 501a65b6 authored by Pawel GUTOWSKI's avatar Pawel GUTOWSKI
Browse files

EDELIVERY-1893 Minor refactorings after code review

parent 935906cf
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ public class DBUser implements BaseEntity {
@Id
@Column(name = "username", unique = true, nullable = false, length = MAX_USERNAME_LENGTH)
public String getUsername() {
public String getId() {
return username;
}
......@@ -42,7 +42,6 @@ public class DBUser implements BaseEntity {
return password;
}
@Column(name = "isadmin", nullable = false)
public boolean isAdmin() {
return isAdmin;
......@@ -53,7 +52,7 @@ public class DBUser implements BaseEntity {
return ownerships;
}
public void setUsername(String username) {
public void setId(String username) {
this.username = username;
}
......@@ -69,13 +68,12 @@ public class DBUser implements BaseEntity {
this.ownerships = ownerships;
}
@Override
@Transient
public String getId() {
return getUsername();
public String getUsername() {
return getId();
}
public void setId(String username){
setUsername(username);
public void setUsername(String username){
setId(username);
}
}
......@@ -96,7 +96,7 @@ public final class ServiceMetadataSigner {
}
signingKeys.put(alias, key);
signingCertificates.put(alias, (X509Certificate) certificate);
log.info("Successfully loaded signing key and certificate: " + ((X509Certificate) certificate).getSubjectDN().getName());
log.info("Successfully loaded [" + alias + "] signing key and certificate: " + ((X509Certificate) certificate).getSubjectDN().getName());
}
public void sign(Document serviceMetadataDoc, String keyAlias) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment