Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ac
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
OATS-CADC
ac
Commits
4e8ffb57
Commit
4e8ffb57
authored
9 years ago
by
Brian Major
Browse files
Options
Downloads
Patches
Plain Diff
s1885 - changed UserClient createX509User to createUser
parent
ef93b36c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cadcAccessControl/src/ca/nrc/cadc/ac/client/UserClient.java
+4
-4
4 additions, 4 deletions
cadcAccessControl/src/ca/nrc/cadc/ac/client/UserClient.java
with
4 additions
and
4 deletions
cadcAccessControl/src/ca/nrc/cadc/ac/client/UserClient.java
+
4
−
4
View file @
4e8ffb57
...
@@ -249,7 +249,7 @@ public class UserClient
...
@@ -249,7 +249,7 @@ public class UserClient
/**
/**
* Create an auto-approved user directly in the user tree (not
* Create an auto-approved user directly in the user tree (not
* the userRequest tree) from the
ir x.500
principal.
* the userRequest tree) from the principal.
*
*
* @param principal Their x500 Principal
* @param principal Their x500 Principal
* @throws UserAlreadyExistsException
* @throws UserAlreadyExistsException
...
@@ -258,13 +258,13 @@ public class UserClient
...
@@ -258,13 +258,13 @@ public class UserClient
* @throws URISyntaxException
* @throws URISyntaxException
* @throws ReaderException
* @throws ReaderException
*/
*/
public
User
create
X509
User
(
X500
Principal
principal
)
public
User
createUser
(
Principal
principal
)
throws
UserAlreadyExistsException
,
IOException
,
WriterException
,
throws
UserAlreadyExistsException
,
IOException
,
WriterException
,
ReaderException
,
URISyntaxException
ReaderException
,
URISyntaxException
{
{
if
(
principal
==
null
)
if
(
principal
==
null
)
{
{
throw
new
IllegalArgumentException
(
"
x500
principal required"
);
throw
new
IllegalArgumentException
(
"principal required"
);
}
}
User
user
=
new
User
();
User
user
=
new
User
();
...
@@ -277,7 +277,7 @@ public class UserClient
...
@@ -277,7 +277,7 @@ public class UserClient
if
(
createUserURL
==
null
)
if
(
createUserURL
==
null
)
throw
new
IllegalArgumentException
(
"No service endpoint for uri "
+
usersURI
);
throw
new
IllegalArgumentException
(
"No service endpoint for uri "
+
usersURI
);
log
.
debug
(
"create
X509
User request to "
+
createUserURL
.
toString
());
log
.
debug
(
"createUser request to "
+
createUserURL
.
toString
());
ByteArrayInputStream
in
=
new
ByteArrayInputStream
(
userXML
.
toString
().
getBytes
());
ByteArrayInputStream
in
=
new
ByteArrayInputStream
(
userXML
.
toString
().
getBytes
());
HttpUpload
put
=
new
HttpUpload
(
in
,
createUserURL
);
HttpUpload
put
=
new
HttpUpload
(
in
,
createUserURL
);
...
...
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