MinecraftAdministrationCenter / mac-docs

Public documentation for the administration panel(both API and UI).
MIT License
0 stars 0 forks source link

Encryption-Key Endpoint #7

Open FastFelix771 opened 6 years ago

FastFelix771 commented 6 years ago

Request Example

GET back.end/global/encryption-key

Reponse Examples

Success

Response-Code: 302 Found

{
    "success": true,
    "content": {
        "ttl": 1440,
        "key": "BASE-64 encoded encryption-key",
        "algorithm": "RSA",
        "key-length": 4096,
        "checksum": {
            "algorithm": "SHA-512",
            "hash": "sha checksum hash"
        }
    }
}

Failure

Response-Code: 500 Internal Server Error

{
    "success": false,
    "content": "ERROR_MESSAGE"
}

Response-Code: 410 Gone

{
    "success": false,
    "content": "PUBLIC_KEY_INACCESSIBLE"
}

If the backend is unable to load the encryption-key from cache or disk.