Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
App Blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Genesys PGR
App Blocks
Commits
e47c0f12
Commit
e47c0f12
authored
Jul 22, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added setters to OAuthClient for Jackson deserialization
parent
566f5e64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
7 deletions
+32
-7
security/src/main/java/org/genesys/blocks/oauth/model/OAuthClient.java
...main/java/org/genesys/blocks/oauth/model/OAuthClient.java
+32
-7
No files found.
security/src/main/java/org/genesys/blocks/oauth/model/OAuthClient.java
View file @
e47c0f12
...
...
@@ -79,7 +79,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
/** The resource ids. */
@JsonView
(
JsonViews
.
Protected
.
class
)
@Transient
private
final
Set
<
String
>
resourceIds
=
new
HashSet
<>();
private
Set
<
String
>
resourceIds
=
new
HashSet
<>();
/** The auto approve. */
@Column
(
nullable
=
false
)
...
...
@@ -93,7 +93,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
/** The auto approve scopes. */
@JsonView
(
JsonViews
.
Protected
.
class
)
@Transient
private
final
Set
<
String
>
autoApproveScopes
=
new
HashSet
<>();
private
Set
<
String
>
autoApproveScopes
=
new
HashSet
<>();
/** The scope. */
@JsonIgnore
...
...
@@ -103,7 +103,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
/** The scopes. */
@JsonView
(
JsonViews
.
Protected
.
class
)
@Transient
private
final
Set
<
String
>
scopes
=
new
HashSet
<>();
private
Set
<
String
>
scopes
=
new
HashSet
<>();
/** The grants. */
@JsonIgnore
...
...
@@ -113,7 +113,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
/** The grant types. */
@JsonView
(
JsonViews
.
Protected
.
class
)
@Transient
private
final
Set
<
String
>
grantTypes
=
new
HashSet
<>();
private
Set
<
String
>
grantTypes
=
new
HashSet
<>();
/** The redirect. */
@JsonIgnore
...
...
@@ -123,7 +123,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
/** The redirect uris. */
@JsonView
(
JsonViews
.
Protected
.
class
)
@Transient
private
final
Set
<
String
>
redirectUris
=
new
HashSet
<>();
private
Set
<
String
>
redirectUris
=
new
HashSet
<>();
/** The roles. */
@JsonView
(
JsonViews
.
Protected
.
class
)
...
...
@@ -135,7 +135,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
/** The additional information. */
@Transient
private
final
Map
<
String
,
Object
>
additionalInformation
=
null
;
private
Map
<
String
,
Object
>
additionalInformation
=
null
;
/** The access token validity. */
private
Integer
accessTokenValidity
;
...
...
@@ -360,6 +360,10 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
public
Set
<
String
>
getAutoApproveScopes
()
{
return
autoApproveScopes
;
}
public
void
setAutoApproveScopes
(
Set
<
String
>
autoApproveScopes
)
{
this
.
autoApproveScopes
=
autoApproveScopes
;
}
/*
* (non-Javadoc)
...
...
@@ -370,6 +374,10 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
public
Set
<
String
>
getResourceIds
()
{
return
resourceIds
;
}
public
void
setResourceIds
(
Set
<
String
>
resourceIds
)
{
this
.
resourceIds
=
resourceIds
;
}
/**
* Client secret is required when provided.
...
...
@@ -398,6 +406,10 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
public
Set
<
String
>
getScope
()
{
return
scopes
;
}
public
void
setScopes
(
Set
<
String
>
scopes
)
{
this
.
scopes
=
scopes
;
}
/*
* (non-Javadoc)
...
...
@@ -408,6 +420,10 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
public
Set
<
String
>
getAuthorizedGrantTypes
()
{
return
grantTypes
;
}
public
void
setGrantTypes
(
Set
<
String
>
grantTypes
)
{
this
.
grantTypes
=
grantTypes
;
}
/*
* (non-Javadoc)
...
...
@@ -419,6 +435,11 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
return
redirectUris
;
}
public
void
setRedirectUris
(
Set
<
String
>
redirectUris
)
{
this
.
redirectUris
=
redirectUris
;
}
/*
* (non-Javadoc)
* @see
...
...
@@ -505,7 +526,11 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
public
Map
<
String
,
Object
>
getAdditionalInformation
()
{
return
additionalInformation
;
}
public
void
setAdditionalInformation
(
Map
<
String
,
Object
>
additionalInformation
)
{
this
.
additionalInformation
=
additionalInformation
;
}
/**
* Sets the title.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment