Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-jams
Commits
8da75196
Commit
8da75196
authored
3 years ago
by
Larbi Gharib
Browse files
Options
Downloads
Patches
Plain Diff
x509: support UID field
Change-Id: I1f91cd9b10e907e291f4ac21b14d167086ab5766
parent
f56f7e2a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jams-common/src/main/java/net/jami/jams/common/objects/roots/X509Fields.java
+4
-0
4 additions, 0 deletions
...n/java/net/jami/jams/common/objects/roots/X509Fields.java
with
4 additions
and
0 deletions
jams-common/src/main/java/net/jami/jams/common/objects/roots/X509Fields.java
+
4
−
0
View file @
8da75196
...
...
@@ -30,6 +30,7 @@ import lombok.Setter;
public
class
X509Fields
{
private
String
commonName
;
private
String
uid
;
private
String
country
;
private
String
state
;
private
String
organization
;
...
...
@@ -42,6 +43,9 @@ public class X509Fields {
if
(
commonName
!=
null
)
{
stringBuilder
.
append
(
"CN="
).
append
(
commonName
);
}
else
return
null
;
if
(
uid
!=
null
)
{
stringBuilder
.
append
(
","
).
append
(
"UID="
).
append
(
uid
);
}
if
(
country
!=
null
)
stringBuilder
.
append
(
","
).
append
(
"C="
).
append
(
country
);
if
(
state
!=
null
)
stringBuilder
.
append
(
","
).
append
(
"ST="
).
append
(
state
);
if
(
organization
!=
null
)
stringBuilder
.
append
(
","
).
append
(
"O="
).
append
(
organization
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment