Open Kilda Java Documentation
org.openkilda.security.RSAEncryptionDescription Class Reference

Static Public Member Functions

static Key readKeyFromFile (final String keyFileName) throws IOException
 
static String rsaEncrypt (final byte[] text, final String file_des) throws Exception
 
static String rsaDecrypt (final String text, final String file_des) throws Exception
 

Detailed Description

The Class RSAEncryptionDescription.

Definition at line 21 of file RSAEncryptionDescription.java.

Member Function Documentation

◆ readKeyFromFile()

static Key org.openkilda.security.RSAEncryptionDescription.readKeyFromFile ( final String  keyFileName) throws IOException
static

Read key from file.

Parameters
keyFileNamethe key file name
Returns
the key
Exceptions
IOExceptionSignals that an I/O exception has occurred.

Definition at line 35 of file RSAEncryptionDescription.java.

◆ rsaDecrypt()

static String org.openkilda.security.RSAEncryptionDescription.rsaDecrypt ( final String  text,
final String  file_des 
) throws Exception
static

Rsa decrypt.

Parameters
textthe text
file_desthe file_des
Returns
the string
Exceptions
Exceptionthe exception

Definition at line 100 of file RSAEncryptionDescription.java.

◆ rsaEncrypt()

static String org.openkilda.security.RSAEncryptionDescription.rsaEncrypt ( final byte []  text,
final String  file_des 
) throws Exception
static

Rsa decrypt.

Parameters
textthe text
file_desthe file_des
Returns
the string
Exceptions
Exceptionthe exception

Definition at line 77 of file RSAEncryptionDescription.java.


The documentation for this class was generated from the following file: