Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing partial crypto functionality #89

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Conversation

seba-aln
Copy link
Contributor

No description provided.

}
}

public function setCrypto(CryptoModule $cryptoModule)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI. In Kotlin/Java it is not possible to setCrypto in PubNub. User can setCrypto only in PNConfiguration.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understood @techwritermat asked for that - maybe he will ask you too ;o

}
}

public function setCrypto(CryptoModule $cryptoModule)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understood @techwritermat asked for that - maybe he will ask you too ;o

if ($this->cryptoModule) {
return $this->cryptoModule;
} else {
return $this->configuration->getCrypto();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line creates a new cryptomodule on missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it has the cipher keyset up in config then will get the module. Else it raises an exception

@seba-aln seba-aln merged commit c33eb39 into master Oct 27, 2023
6 checks passed
@seba-aln seba-aln deleted the fix/partial-crypto branch October 27, 2023 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants