IRPCLogin.GetPublicKey

View as Markdown

Vault API / core session session idempotent

Gets the server's RSA public key, for encrypting secrets that a client sends to the server.

ServiceLogin and sessions MFiles.IRPCLogin
gRPC method/MFiles.IRPCLogin/GetPublicKey
HTTP (mf-http-grpc)POST /grpc/v1/get-public-key
RequestGetPublicKeyRequest
ResponseGetPublicKeyResponse
Book and levelVault API, core
Kindsession
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Used by M-Files clients that encrypt passwords or authentication data above the transport layer. Over TLS, applications do not need it. The key is a Windows CryptoAPI public key blob.

Request: GetPublicKeyRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
password_encryptionPasswordEncryptionEncryption for which the key is requested.Values: PASSWORD_ENCRYPTION_RC4 (0), PASSWORD_ENCRYPTION_UNENCRYPTED (1), PASSWORD_ENCRYPTION_AES256 (2).

Response: GetPublicKeyResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
public_keybytesReceives the public key as a BLOB.