This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Process MAM message revoked: authorization | |
* @param message {Object} MAM message of type {@link AUTHORIZATION_REVOKED_TYPE}. | |
* @returns {undefined} | |
*/ | |
processAuthorizationRevokedMessage(message) { | |
const newSideKey = DeviceClient.createSideKey(); | |
this.authorizedServiceProviders.remove(message.policy.serviceProvider); | |
this.informUpdateSideKey( | |
this.authorizedServiceProviders.getAll(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Send encrypted MAM data to a service provider. | |
* | |
* @function sendMamData | |
* @param {string} seed IOTA seed of sender | |
* @param {string} address IOTA address of the service provider | |
* @param {string} publicKey Public key of the service provider in trytes | |
* @returns {Promise} containing IOTA transactions | |
*/ | |
async sendMamData(seed, address, publicKey) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
type: 'KEY_ROTATION, | |
// IOTA address Side key encrypted with authorized service provider's public key | |
TOBVJSE9FAAMQGJXYDB...: 'TYBD9HVRWENQKYLKRAKZOHNWJYMDTTVXGOP...', | |
CUEIYQBOFIYGRBMOEG9...: 'ACNIUSZKCMSSEQ9ILSEACKWLQWSYMRAZYIR...' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Formal education will make you a living. Self-education will make you a | |
fortune." | |
~ Jim Rohn | |
% | |
"Programming is not easy like Sunday morning, it is silent poetry." | |
~ Waseem Latif | |
% | |
"The best way to get the right answer on the internet is not to ask a question; | |
it's to post the wrong answer." | |
~ Cunningham's Law |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns custom-resteasy-client | |
"Creates a custom `javax.ws.rs.client.Client` with settings for timeouts, | |
evicting idle connections and a retry handler. This client can be a | |
resteasyClient for KeycloakBuilder that does not lead to \"RESTEASY004655 | |
Unable to invoke request: java.net.SocketException: Connection reset errors\" | |
according to the suggestion in | |
https://github.com/keycloak/keycloak/issues/8917#issuecomment-1712895984." | |
(:import | |
(java.util.concurrent TimeUnit) | |
(org.apache.http.impl.client DefaultHttpRequestRetryHandler HttpClients) |
OlderNewer