RSA public key
Create public key instance public key from PEM formatted key file or X.509 certificate file
| Parameters: | string – |
|---|---|
| Return type: | PublicKey |
| Throws : | ExceptionInvalidArgumentException |
Construct public key with PEM formatted string or X.509 certificate
| Parameters: | string – |
|---|---|
| Throws ExceptionRuntimeException: | |
Encrypt using this key
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Throws ExceptionRuntimeException: | |
| Return type: | string |
Decrypt using this key
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Throws ExceptionRuntimeException: | |
| Return type: | string |