@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00") public class DefaultClient extends AbstractClient
| Constructor and Description |
|---|
DefaultClient(ClientCredentialsResolver clientCredentialsResolver,
BaseUrlResolver baseUrlResolver,
Proxy proxy,
CacheManager cacheManager,
AuthenticationScheme authenticationScheme,
RequestAuthenticatorFactory requestAuthenticatorFactory,
int connectionTimeout)
Instantiates a new Client instance that will communicate with the Okta REST API.
|
| Modifier and Type | Method and Description |
|---|---|
Application |
createApplication(Application application)
Add Application
Adds a new application to your Okta organization.
|
Application |
createApplication(Application application,
Boolean activate)
Add Application
Adds a new application to your Okta organization.
|
Group |
createGroup(Group group)
Add Group
Adds a new group with `OKTA_GROUP` type to your organization.
|
GroupRule |
createRule(GroupRule groupRule)
Create Group Rule
Creates a group rule to dynamically add users to the specified group if they match the condition
|
Session |
createSession(CreateSessionRequest createSessionRequest)
Create Session with Session Token
Creates a new session for a user with a valid session token.
|
User |
createUser(User body)
Create User
Creates a new user in your Okta organization with or without credentials.
|
User |
createUser(User body,
Boolean activate,
Boolean provider)
Create User
Creates a new user in your Okta organization with or without credentials.
|
Application |
getApplication(String appId)
Get Application
Fetches an application from your Okta organization by `id`.
|
Application |
getApplication(String appId,
String expand)
Get Application
Fetches an application from your Okta organization by `id`.
|
Group |
getGroup(String groupId)
List Group Rules
Lists all group rules for your organization.
|
Group |
getGroup(String groupId,
String expand)
List Group Rules
Lists all group rules for your organization.
|
LogEventList |
getLogs()
Fetch a list of events from your Okta organization system log.
|
LogEventList |
getLogs(String until,
String since,
String filter,
String q,
String sortOrder)
Fetch a list of events from your Okta organization system log.
|
GroupRule |
getRule(String ruleId)
Get Group Rule
Fetches a specific group rule by id from your organization
|
Session |
getSession(String sessionId)
Get details about a session.
|
User |
getUser(String userId)
Get User
Fetches a user from your Okta organization.
|
ApplicationList |
listApplications()
List Applications
Enumerates apps added to your organization with pagination.
|
ApplicationList |
listApplications(String q,
String filter,
String expand,
Boolean includeNonDeleted)
List Applications
Enumerates apps added to your organization with pagination.
|
GroupList |
listGroups()
List Groups
Enumerates groups in your organization with pagination.
|
GroupList |
listGroups(String q,
String filter,
String expand)
List Groups
Enumerates groups in your organization with pagination.
|
GroupRuleList |
listRules()
List Group Rules
Lists all group rules for your organization.
|
UserList |
listUsers()
List Users
Lists users in your organization with pagination in most cases.
|
UserList |
listUsers(String q,
String filter,
String format,
String search,
String expand)
List Users
Lists users in your organization with pagination in most cases.
|
createDataStore, createRequestExecutor, getCacheManager, getClientCredentials, getDataStore, getResource, instantiatepublic DefaultClient(ClientCredentialsResolver clientCredentialsResolver, BaseUrlResolver baseUrlResolver, Proxy proxy, CacheManager cacheManager, AuthenticationScheme authenticationScheme, RequestAuthenticatorFactory requestAuthenticatorFactory, int connectionTimeout)
clientCredentialsResolver - Okta API Key resolverbaseUrlResolver - Okta base URL resolverproxy - the HTTP proxy to be used when communicating with the Okta API server (can be
null)cacheManager - the CacheManager that should be used to cache
Okta REST resources (can be null)authenticationScheme - the HTTP authentication scheme to be used when communicating with the Okta APIrequestAuthenticatorFactory - connectionTimeout - @Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="POST - /api/v1/apps") public Application createApplication(Application application, Boolean activate)
application - (required)activate - Executes activation lifecycle operation when creating the app (optional, default to true)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="POST - /api/v1/apps") public Application createApplication(Application application)
application - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="POST - /api/v1/groups") public Group createGroup(Group group)
group - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="POST - /api/v1/groups/rules") public GroupRule createRule(GroupRule groupRule)
groupRule - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="POST - /api/v1/sessions") public Session createSession(CreateSessionRequest createSessionRequest)
createSessionRequest - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="POST - /api/v1/users") public User createUser(User body, Boolean activate, Boolean provider)
body - (required)activate - Executes activation lifecycle operation when creating the user (optional, default to true)provider - Indicates whether to create a user with a specified authentication provider (optional, default to false)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="POST - /api/v1/users") public User createUser(User body)
body - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/apps/{appId}") public Application getApplication(String appId, String expand)
appId - (required)expand - (optional)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/apps/{appId}") public Application getApplication(String appId)
appId - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/groups/{groupId}") public Group getGroup(String groupId, String expand)
groupId - (required)expand - (optional)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/groups/{groupId}") public Group getGroup(String groupId)
groupId - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/logs") public LogEventList getLogs(String until, String since, String filter, String q, String sortOrder)
until - (optional)since - (optional)filter - (optional)q - (optional)sortOrder - (optional, default to ASCENDING)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/logs") public LogEventList getLogs()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/groups/rules/{ruleId}") public GroupRule getRule(String ruleId)
ruleId - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/sessions/{sessionId}") public Session getSession(String sessionId)
sessionId - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/users/{userId}") public User getUser(String userId)
userId - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/apps") public ApplicationList listApplications(String q, String filter, String expand, Boolean includeNonDeleted)
q - (optional)filter - Filters apps by status, user.id, group.id or credentials.signing.kid expression (optional)expand - Traverses users link relationship and optionally embeds Application User resource (optional)includeNonDeleted - (optional, default to false)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/apps") public ApplicationList listApplications()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/groups") public GroupList listGroups(String q, String filter, String expand)
q - Searches the name property of groups for matching value (optional)filter - Filter expression for groups (optional)expand - (optional)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/groups") public GroupList listGroups()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/groups/rules") public GroupRuleList listRules()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/users") public UserList listUsers(String q, String filter, String format, String search, String expand)
q - Finds a user that matches firstName, lastName, and email properties (optional)filter - Filters users with a supported expression for a subset of properties (optional)format - (optional)search - Searches for users with a supported filtering expression for most properties (optional)expand - (optional)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2017-12-14T13:01:44.308-05:00", comments="GET - /api/v1/users") public UserList listUsers()
Copyright © 2017 Okta. All rights reserved.