Interface TrustWriter
public interface TrustWriter
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<Void> addIdentityPool(String poolId, int version, String issuer, String providerId, String jwksEndpoint, String subjectClaim, String serviceAccount, String policy, String orgId) addIdentityPool(Optional<Principal> requesterPrincipal, String poolId, int version, String issuer, String providerId, String jwksEndpoint, String subjectClaim, String serviceAccount, String policy, String orgId, String reason) Adds a new IdentityPool record.default CompletionStage<Void> addIdentityProvider(String orgId, String providerId, String subjectClaim, String issuer, String jwksEndpoint) addIdentityProvider(Optional<Principal> requesterPrincipal, String orgId, String providerId, String subjectClaim, String issuer, String jwksEndpoint) Add a new identity provider recorddefault CompletionStage<Void> addJwks(Optional<Principal> requesterPrincipal, String jwtIssuer, String jwksEndpoint, org.jose4j.jwk.JsonWebKeySet jwks, String reason) Adds a new Jwks record.default CompletionStage<Void> addRefreshTokenInfo(String issuer, String encryptedRefreshToken, long issuedAt, String subClaim, String sessionId) addRefreshTokenInfo(Optional<Principal> requesterPrincipal, String issuer, String encryptedRefreshToken, long issuedAt, String subClaim, String sessionId) Adds refresh token informationdefault CompletionStage<Void> removeIdentityPool(String poolId) removeIdentityPool(Optional<Principal> requesterPrincipal, String poolId, String reason) Removes an IdentityPool record.default CompletionStage<Void> removeIdentityProvider(String orgId, String providerId) removeIdentityProvider(Optional<Principal> requesterPrincipal, String orgId, String providerId) Remove an existing identity provider recorddefault CompletionStage<Void> removeJwks(String jwtIssuer, String jwksEndpoint) removeJwks(Optional<Principal> requesterPrincipal, String jwtIssuer, String jwksEndpoint, String reason) Removes a Jwksdefault CompletionStage<Void> removeRefreshTokenInfo(String issuer, String subClaim) removeRefreshTokenInfo(Optional<Principal> requesterPrincipal, String issuer, String subClaim) default CompletionStage<Void> replaceIdentityPool(String poolId, int version, String issuer, String providerId, String jwksEndpoint, String subjectClaim, String serviceAccount, String policy, String orgId) replaceIdentityPool(Optional<Principal> requesterPrincipal, String poolId, int version, String issuer, String providerId, String jwksEndpoint, String subjectClaim, String serviceAccount, String policy, String orgId, String reason) Replaces an IdentityPooldefault CompletionStage<Void> replaceIdentityProvider(String orgId, String providerId, String subjectClaim, String issuer, String jwksEndpoint) replaceIdentityProvider(Optional<Principal> requesterPrincipal, String orgId, String providerId, String subjectClaim, String issuer, String jwksEndpoint) Replace an existing identity provider recorddefault CompletionStage<Void> replaceJwks(String jwtIssuer, String jwksEndpoint, org.jose4j.jwk.JsonWebKeySet jwks) replaceJwks(Optional<Principal> requesterPrincipal, String jwtIssuer, String jwksEndpoint, org.jose4j.jwk.JsonWebKeySet jwks, String reason) Replaces a Jwksdefault CompletionStage<Void> replaceRefreshTokenInfo(String issuer, String encryptedRefreshToken, long issuedAt, String subClaim, String sessionId) replaceRefreshTokenInfo(Optional<Principal> requesterPrincipal, String issuer, String encryptedRefreshToken, long issuedAt, String subClaim, String sessionId)
-
Method Details
-
addIdentityProvider
CompletionStage<Void> addIdentityProvider(Optional<Principal> requesterPrincipal, String orgId, String providerId, String subjectClaim, String issuer, String jwksEndpoint) Add a new identity provider record- Parameters:
requesterPrincipal- Optional principal of the requesterorgId- IdentityProvider organization ID expressionproviderId- IdentityProvider customer-facing identifiersubjectClaim- IdentityProvider level subject claim- Returns:
- a stage that is completed when update completes
-
addIdentityProvider
-
removeIdentityProvider
CompletionStage<Void> removeIdentityProvider(Optional<Principal> requesterPrincipal, String orgId, String providerId) Remove an existing identity provider record- Parameters:
requesterPrincipal- Optional principal of the requesterorgId- IdentityProvider organization ID expressionproviderId- IdentityProvider customer-facing identifier- Returns:
- a stage that is completed when remove completes
-
removeIdentityProvider
-
replaceIdentityProvider
CompletionStage<Void> replaceIdentityProvider(Optional<Principal> requesterPrincipal, String orgId, String providerId, String subjectClaim, String issuer, String jwksEndpoint) Replace an existing identity provider record- Parameters:
requesterPrincipal- Optional principal of the requesterorgId- IdentityProvider organization ID expressionproviderId- IdentityProvider customer-facing identifiersubjectClaim- IdentityProvider level subject claim- Returns:
- a stage that is completed when replace completes
-
replaceIdentityProvider
-
addJwks
CompletionStage<Void> addJwks(Optional<Principal> requesterPrincipal, String jwtIssuer, String jwksEndpoint, org.jose4j.jwk.JsonWebKeySet jwks, String reason) Adds a new Jwks record.- Parameters:
requesterPrincipal- Optional principal of the requesterjwtIssuer- JsonWebToken jwtIssuer identifierjwksEndpoint- JWKS URI for getting JWKS from issuerjwks- JsonWebKeySet used for verifying token signatures- Returns:
- a stage that is completed when update completes
- Throws:
IllegalArgumentException- if scope is invalid.
-
addJwks
default CompletionStage<Void> addJwks(String jwtIssuer, String jwksEndpoint, org.jose4j.jwk.JsonWebKeySet jwks) -
removeJwks
CompletionStage<Void> removeJwks(Optional<Principal> requesterPrincipal, String jwtIssuer, String jwksEndpoint, String reason) Removes a Jwks- Parameters:
requesterPrincipal- Optional principal of the requesterjwtIssuer- JsonWebToken jwtIssuer identifierjwksEndpoint- JWKS URI for getting JWKS from issuer- Returns:
- a stage that is completed when update completes
- Throws:
IllegalArgumentException- if scope is invalid.
-
removeJwks
-
replaceJwks
CompletionStage<Void> replaceJwks(Optional<Principal> requesterPrincipal, String jwtIssuer, String jwksEndpoint, org.jose4j.jwk.JsonWebKeySet jwks, String reason) Replaces a Jwks- Parameters:
requesterPrincipal- Optional principal of the requesterjwtIssuer- JsonWebToken jwtIssuer identifierjwksEndpoint- Endpoint JWKS is retrieved fromjwks- Collection of Json Web Keys used for verifying token signatures- Returns:
- a stage that is completed when update completes
- Throws:
IllegalArgumentException- if scope is invalid.
-
replaceJwks
default CompletionStage<Void> replaceJwks(String jwtIssuer, String jwksEndpoint, org.jose4j.jwk.JsonWebKeySet jwks) -
addIdentityPool
CompletionStage<Void> addIdentityPool(Optional<Principal> requesterPrincipal, String poolId, int version, String issuer, String providerId, String jwksEndpoint, String subjectClaim, String serviceAccount, String policy, String orgId, String reason) Adds a new IdentityPool record.- Parameters:
requesterPrincipal- Optional principal of the requesterpoolId- IdentityPool identifierversion- Indicates which version this record corresponds to.issuer- Issuer bound to this identityPoolproviderId- IdentityPool providerIdjwksEndpoint- bound to this identityPoolsubjectClaim- claim containing the authentication identityserviceAccount- Service account bound to this identityPoolpolicy- IdentityPool trust policy expressionorgId- IdentityPool organization ID expression- Returns:
- a stage that is completed when update completes
- Throws:
IllegalArgumentException- if scope is invalid.
-
addIdentityPool
-
removeIdentityPool
CompletionStage<Void> removeIdentityPool(Optional<Principal> requesterPrincipal, String poolId, String reason) Removes an IdentityPool record.- Parameters:
requesterPrincipal- Optional principal of the requesterpoolId- IdentityPool identifier- Returns:
- a stage that is completed when update completes
- Throws:
IllegalArgumentException- if scope is invalid.
-
removeIdentityPool
-
replaceIdentityPool
CompletionStage<Void> replaceIdentityPool(Optional<Principal> requesterPrincipal, String poolId, int version, String issuer, String providerId, String jwksEndpoint, String subjectClaim, String serviceAccount, String policy, String orgId, String reason) Replaces an IdentityPool- Parameters:
requesterPrincipal- Optional principal of the requesterpoolId- IdentityPool identifierversion- Indicates which version this record corresponds to.issuer- Issuer bound to this identityPoolproviderId- IdentityPool provider IdjwksEndpoint- JWKS endpoint bound to this identityPoolsubjectClaim- claim containing the authentication identityserviceAccount- Service account bound to this identityPoolpolicy- IdentityPool trust policy expressionorgId- IdentityPool organization ID expression- Returns:
- a stage that is completed when update completes
- Throws:
IllegalArgumentException- if scope is invalid.
-
replaceIdentityPool
-
addRefreshTokenInfo
CompletionStage<Void> addRefreshTokenInfo(Optional<Principal> requesterPrincipal, String issuer, String encryptedRefreshToken, long issuedAt, String subClaim, String sessionId) Adds refresh token information- Parameters:
requesterPrincipal- Optional principal of the requesterissuer- The issuer of the refresh token or issuer url of IdPencryptedRefreshToken- The encrypted refresh token stringissuedAt- The issued at time of the refresh tokensubClaim- The subject associated with the refresh tokensessionId- The id of session in which current refresh token is issued- Returns:
- a CompletionStage that represents the completion of the operation
- Throws:
IllegalArgumentException- if scope is invalid.
-
addRefreshTokenInfo
-
removeRefreshTokenInfo
-
removeRefreshTokenInfo
-
replaceRefreshTokenInfo
-
replaceRefreshTokenInfo
-