improve some comments
This commit is contained in:
parent
6aafd69f8f
commit
27fcc337a3
1 changed files with 4 additions and 2 deletions
|
@ -40,6 +40,8 @@ public class OlmSAS {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Public Key encoded in Base64 with no padding
|
* Gets the Public Key encoded in Base64 with no padding
|
||||||
|
* @return The public key
|
||||||
|
* @throws OlmException the failure reason
|
||||||
*/
|
*/
|
||||||
public String getPublicKey() throws OlmException {
|
public String getPublicKey() throws OlmException {
|
||||||
try {
|
try {
|
||||||
|
@ -60,7 +62,7 @@ public class OlmSAS {
|
||||||
* Sets the public key of other user.
|
* Sets the public key of other user.
|
||||||
*
|
*
|
||||||
* @param otherPkey other user public key (base64 encoded with no padding)
|
* @param otherPkey other user public key (base64 encoded with no padding)
|
||||||
* @throws OlmException
|
* @throws OlmException the failure reason
|
||||||
*/
|
*/
|
||||||
public void setTheirPublicKey(String otherPkey) throws OlmException {
|
public void setTheirPublicKey(String otherPkey) throws OlmException {
|
||||||
try {
|
try {
|
||||||
|
@ -79,7 +81,7 @@ public class OlmSAS {
|
||||||
* per the Matrix spec.
|
* per the Matrix spec.
|
||||||
* @param byteNumber The size of the short code to generate
|
* @param byteNumber The size of the short code to generate
|
||||||
* @return The generated shortcode
|
* @return The generated shortcode
|
||||||
* @throws OlmException
|
* @throws OlmException the failure reason
|
||||||
*/
|
*/
|
||||||
public byte[] generateShortCode(String info, int byteNumber) throws OlmException {
|
public byte[] generateShortCode(String info, int byteNumber) throws OlmException {
|
||||||
if (theirPublicKey == null || theirPublicKey.isEmpty()) {
|
if (theirPublicKey == null || theirPublicKey.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue