@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00") public class DefaultIdentityProvider extends AbstractInstanceResource<IdentityProvider> implements IdentityProvider
IdentityProvider.IssuerModeEnum, IdentityProvider.StatusEnum, IdentityProvider.TypeValues
properties
readLock, writeLock
Constructor and Description |
---|
DefaultIdentityProvider(InternalDataStore dataStore) |
DefaultIdentityProvider(InternalDataStore dataStore,
Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
IdentityProvider |
activate()
Activate Identity Provider
Activates an inactive IdP.
|
JsonWebKey |
cloneKey(String keyId,
String targetIdpId)
Clone Signing Key Credential for IdP
Clones a X.509 certificate for an IdP signing key credential from a source IdP to target IdP
|
IdentityProvider |
deactivate()
Deactivate Identity Provider
Deactivates an active IdP.
|
void |
delete()
Delete Identity Provider
Removes an IdP from your organization.
|
void |
deleteSigningCsr(String csrId)
Revoke a Certificate Signing Request and delete the key pair from the IdP
|
Csr |
generateCsr(CsrMetadata metadata)
Generate Certificate Signing Request for IdP
Generates a new key pair and returns a Certificate Signing Request for it.
|
JsonWebKey |
generateSigningKey(Integer validityYears)
Generate New IdP Signing Key Credential
Generates a new X.509 certificate for an IdP signing key credential to be used for signing assertions sent to the IdP
|
Date |
getCreated() |
String |
getId() |
IdentityProvider.IssuerModeEnum |
getIssuerMode() |
Date |
getLastUpdated() |
Map<String,Object> |
getLinks() |
String |
getName() |
IdentityProviderPolicy |
getPolicy() |
Map<String,Property> |
getPropertyDescriptors() |
Protocol |
getProtocol() |
Class<? extends Resource> |
getResourceClass()
Returns the class this resource represents.
|
Csr |
getSigningCsr(String csrId)
Gets a specific Certificate Signing Request model by id
|
JsonWebKey |
getSigningKey(String keyId)
Get Signing Key Credential for IdP
Gets a specific IdP Key Credential by `kid`
|
IdentityProvider.StatusEnum |
getStatus() |
String |
getType() |
IdentityProviderApplicationUser |
getUser(String userId)
Fetches a linked IdP user by ID
|
IdentityProviderApplicationUser |
linkUser(String userId,
UserIdentityProviderLinkRequest userIdentityProviderLinkRequest)
Link a user to a Social IdP without a transaction
Links an Okta user to an existing Social Identity Provider.
|
CsrList |
listSigningCsrs()
List Certificate Signing Requests for IdP
Enumerates Certificate Signing Requests for an IdP
|
JsonWebKeyList |
listSigningKeys()
List Signing Key Credentials for IdP
Enumerates signing key credentials for an IdP
|
SocialAuthTokenList |
listSocialAuthTokens(String userId)
Social Authentication Token Operation
Fetches the tokens minted by the Social Authentication Provider when the user authenticates with Okta via Social Auth.
|
IdentityProviderApplicationUserList |
listUsers()
Find Users
Find all the users linked to an identity provider
|
IdentityProvider |
setIssuerMode(IdentityProvider.IssuerModeEnum issuerMode) |
IdentityProvider |
setName(String name) |
IdentityProvider |
setPolicy(IdentityProviderPolicy policy) |
IdentityProvider |
setProtocol(Protocol protocol) |
IdentityProvider |
setStatus(IdentityProvider.StatusEnum status) |
IdentityProvider |
setType(String type) |
void |
unlinkUser(String userId)
Unlink User from IdP
Removes the link between the Okta user and the IdP user.
|
IdentityProvider |
update(IdentityProvider identityProvider)
Update Identity Provider
Updates the configuration for an IdP.
|
save
clear, containsKey, containsValue, createPropertyDescriptorMap, createPropertyDescriptorMap, entrySet, equals, get, getDataStore, getDeletedPropertyNames, getInternalProperties, getParamsFromHref, getProperty, getPropertyNames, getResourceHref, getResourceListProperty, getResourceProperty, getUpdatedPropertyNames, hashCode, hasProperty, isDirty, isEmpty, isPrintableProperty, keySet, materialize, put, putAll, remove, setInternalProperties, setProperty, setProperty, setResourceHref, size, toString, values
getBoolean, getBoolean, getBooleanProperty, getCharArray, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumListProperty, getEnumProperty, getEnumProperty, getInt, getInteger, getIntegerList, getIntProperty, getIntProperty, getListProperty, getListProperty, getMap, getMapProperty, getNonEmptyMap, getNullableBoolean, getNullableBooleanProperty, getNumber, getNumberList, getString, getString, getStringList, getStringProperty, setProperty, setProperty
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getResourceHref, setResourceHref
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public DefaultIdentityProvider(InternalDataStore dataStore)
public DefaultIdentityProvider(InternalDataStore dataStore, Map<String,Object> properties)
public Map<String,Property> getPropertyDescriptors()
getPropertyDescriptors
in class AbstractResource
public Class<? extends Resource> getResourceClass()
AbstractInstanceResource
Foo
, in this case this method may return Foo.class
.
(Defaults to getClass()
.)getResourceClass
in class AbstractInstanceResource<IdentityProvider>
public Map<String,Object> getLinks()
getLinks
in interface IdentityProvider
public Date getCreated()
getCreated
in interface IdentityProvider
public String getId()
getId
in interface IdentityProvider
public IdentityProvider.IssuerModeEnum getIssuerMode()
getIssuerMode
in interface IdentityProvider
public IdentityProvider setIssuerMode(IdentityProvider.IssuerModeEnum issuerMode)
setIssuerMode
in interface IdentityProvider
public Date getLastUpdated()
getLastUpdated
in interface IdentityProvider
public String getName()
getName
in interface IdentityProvider
public IdentityProvider setName(String name)
setName
in interface IdentityProvider
public IdentityProviderPolicy getPolicy()
getPolicy
in interface IdentityProvider
public IdentityProvider setPolicy(IdentityProviderPolicy policy)
setPolicy
in interface IdentityProvider
public Protocol getProtocol()
getProtocol
in interface IdentityProvider
public IdentityProvider setProtocol(Protocol protocol)
setProtocol
in interface IdentityProvider
public IdentityProvider.StatusEnum getStatus()
getStatus
in interface IdentityProvider
public IdentityProvider setStatus(IdentityProvider.StatusEnum status)
setStatus
in interface IdentityProvider
public String getType()
getType
in interface IdentityProvider
public IdentityProvider setType(String type)
setType
in interface IdentityProvider
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/idps/{idpId}/users/{userId}") public IdentityProviderApplicationUser getUser(String userId)
getUser
in interface IdentityProvider
userId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/idps/{idpId}/credentials/csrs/{csrId}") public Csr getSigningCsr(String csrId)
getSigningCsr
in interface IdentityProvider
csrId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="DELETE - /api/v1/idps/{idpId}") public void delete()
delete
in interface Deletable
delete
in interface IdentityProvider
delete
in class AbstractInstanceResource<IdentityProvider>
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/idps/{idpId}/credentials/csrs") public Csr generateCsr(CsrMetadata metadata)
generateCsr
in interface IdentityProvider
metadata
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/idps/{idpId}/lifecycle/activate") public IdentityProvider activate()
activate
in interface IdentityProvider
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/idps/{idpId}/users/{userId}") public IdentityProviderApplicationUser linkUser(String userId, UserIdentityProviderLinkRequest userIdentityProviderLinkRequest)
linkUser
in interface IdentityProvider
userId
- (required)userIdentityProviderLinkRequest
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/idps/{idpId}/users/{userId}/credentials/tokens") public SocialAuthTokenList listSocialAuthTokens(String userId)
listSocialAuthTokens
in interface IdentityProvider
userId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/idps/{idpId}/credentials/keys") public JsonWebKeyList listSigningKeys()
listSigningKeys
in interface IdentityProvider
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="DELETE - /api/v1/idps/{idpId}/credentials/csrs/{csrId}") public void deleteSigningCsr(String csrId)
deleteSigningCsr
in interface IdentityProvider
csrId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/idps/{idpId}/credentials/keys/{keyId}") public JsonWebKey getSigningKey(String keyId)
getSigningKey
in interface IdentityProvider
keyId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/idps/{idpId}") public IdentityProvider update(IdentityProvider identityProvider)
update
in interface IdentityProvider
identityProvider
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/idps/{idpId}/credentials/keys/generate") public JsonWebKey generateSigningKey(Integer validityYears)
generateSigningKey
in interface IdentityProvider
validityYears
- expiry of the IdP Key Credential (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/idps/{idpId}/users") public IdentityProviderApplicationUserList listUsers()
listUsers
in interface IdentityProvider
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="DELETE - /api/v1/idps/{idpId}/users/{userId}") public void unlinkUser(String userId)
unlinkUser
in interface IdentityProvider
userId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/idps/{idpId}/credentials/csrs") public CsrList listSigningCsrs()
listSigningCsrs
in interface IdentityProvider
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/idps/{idpId}/lifecycle/deactivate") public IdentityProvider deactivate()
deactivate
in interface IdentityProvider
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/idps/{idpId}/credentials/keys/{keyId}/clone") public JsonWebKey cloneKey(String keyId, String targetIdpId)
cloneKey
in interface IdentityProvider
keyId
- (required)targetIdpId
- (required)Copyright © 2017–2023 Okta. All rights reserved.