POST api/Import/KeySeeds

Imports key seeds from PSKC.

Request Information

URI Parameters

None.

Body Parameters

None.

Request Formats

application/pskc+xml

Sample:
<?xml version="1.0" encoding="utf-8"?>
<pskc:KeyContainer xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Version="1.0" xmlns:pskc="urn:ietf:params:xml:ns:keyprov:pskc">
  <pskc:EncryptionKey>
    <ds:X509Data>
      <ds:X509Certificate>MIIEizCCAnMCCQC62C7xyTt/SjANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCRUUxETAPBgNVBAgMCFRhcnR1bWFhMQ4wDAYDVQQHDAVUYXJ0dTEPMA0GA1UECgwGQXhpbm9tMQwwCgYDVQQLDANEUk0xEzARBgNVBAMMCktleSBTZXJ2ZXIxJDAiBgkqhkiG9w0BCQEWFWtleXNlcnZlckBleGFtcGxlLmNvbTAgFw0xNjA0MTgwNzQ3NTRaGA8zMDE1MDgyMDA3NDc1NFowgYExCzAJBgNVBAYTAkVFMREwDwYDVQQIDAhUYXJ0dW1hYTEOMAwGA1UEBwwFVGFydHUxDzANBgNVBAoMBkF4aW5vbTEMMAoGA1UECwwDRFJNMQ4wDAYDVQQDDAVUZXN0czEgMB4GCSqGSIb3DQEJARYRdGVzdHNAZXhhbXBsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvM0Bui5A2LUW/0VS0Fp36Stk0j6v0KQP+2O58DWBsHz/rfGhgV2zCojU07K4gVoeE3v4SYNCRTHohtQVu8rywD5jNMk/z4QD6If0c01LU/aSIeUvauDuCTrlRgJAiF2mlwbmGlfOimv7YbuzuejUgoYXq9Y1dUY342mnyQZwSZy9NgEuBS4d5D/CCM9xSGJubB5FqzLjJzFBANS7G+yGlsl9YlMFSeCxx25OTiQKeT5GoSxJv+/KP6Ahkmv6StwT1GBysq+8Xc0Y+BPAxUZHhqlM5NQ/Lu49ENcXS6FM+c3hSCwh04tetKwVbFE2PFpDCIBRalnv+Zr/+q3QVQcmpAgMBAAEwDQYJKoZIhvcNAQELBQADggIBAEQ+CQQIYy0EQfLapYv8A0BKA9zWjqLat3rGrUUg84hbDLEw9sk+A4ef+A4A+EotoUFYEihkVYE+g8J9fi9QBrg4dVyxZce8PqppQw4HPXpLXX/4fVtqTWNTflU8qXOEhfG87a4TrCjbs99RV7mpxw3Atkc64LX1fipZJtpNGnJyWEQzTPoYQSJ2S6hgXezlf4RzQEdTfll2pf/BGt2QqnBLpoAnTH1DOlKjpeG7/OmLecHWIKDPueq/BaOhETNbjU8t9nT9G5gOgkF+31z7HyKupXaM6louZvdfD0RWTd9Mkn5epjD4EPWq8boVRKOUVAFbVuNuTQMvpRZlvUR+97oSylihxpDaJDnyv6nipFAVnJMitzaCXO34da7K0Xynhmf7JhXMSnbTjWH4RNEulL+B9HxKG11xNHscXN4mU3ODI9dK14gL837f0ihDwXyBWXLL4e3e8QHbzJQTEHj0M3IYlmRaOHWJ1uTlySWaXj5kschDgK18ApPTK85+nuxFvqbSliUNhFDLOLZEqd2cH2GuE+jAF6YAAQrnaLe58bESsoneLqayKZFAkUmDVYgvOO2gHKpmHU3TtKOsO9tl68b1zaaG2tGb9Yt9Hbt5AdM3nMiB0fd8E8MaP5uPWgspsK/Js6y0neRksJ+PYufL2YW46j4y0DutPZwjBb/0VC0S</ds:X509Certificate>
    </ds:X509Data>
  </pskc:EncryptionKey>
  <pskc:MACMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#hmac-sha512">
    <pskc:MACKey>
      <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
      <xenc:CipherData>
        <xenc:CipherValue>HalCaYf77QsnEQm5khAdcIIDwvQrChmkY5Mai6eA37vAoC3VJO2FNynBiS3w3RgKqBBaBDlhxrLpzC2t3G+612VnOTqoKWgtMhsjtNrTcD+lOHntnHgUaZ5Y1e/N9TFHnLO9bK+UV7K/AugMKjXFTHXey+9h/X0+pGa2c6PYzjMzZ2v92gCxqjNoVB97p7XmXbOQL6xYIKYeCXYXkPyudqldx3xDiTmm3YyJKP4WSiflOJffuUtgN515NLMT/TKBncLRm43mPwmNjkv+j1aGGlwqrYol4urnTLn/E2CHuvkqVQ42B2wNfeGq3IdmjwZez7K2IIvvShmXUDezoVbSjA==</xenc:CipherValue>
      </xenc:CipherData>
    </pskc:MACKey>
  </pskc:MACMethod>
  <pskc:KeyPackage>
    <pskc:Key Id="b29c1925-be3b-4165-a36b-08316fb5f9e5" Algorithm="urn:axinom:keyseed">
      <pskc:FriendlyName>Named Sample Key Seed</pskc:FriendlyName>
      <pskc:Data>
        <pskc:Secret>
          <pskc:EncryptedValue>
            <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
            <xenc:CipherData>
              <xenc:CipherValue>CDFWKGQFv0MFX3EJbifhY67SuvW/ZiYQqVlzgurW3OmNzOPkw1nn0y7Z4eH3gWgI4txvhk5OxrK0eci0TjU4T2YYYB+zFVSFrudvbHqWFALcX32/zc+A/UmoPr/wIsG3y5ITlcVgeuOmhQPbkmG26EJj1SguJx8YJRcEe8cHf90k12SVp8zEO287kVq6a6Xw3lAjKbskZazHNs9sYyXkZoz67DoikCA3sKv319cfjydY7QAUPtrA2WDaLalZuhFPI/nmmOPfKIoMsP2vmHbch2SYSswBU7TjOIDa6ZdWHIu7ig6aiVaBhqN04LmhPFdd4cvdbH7EOAwNQ+6xhaxTVw==</xenc:CipherValue>
            </xenc:CipherData>
          </pskc:EncryptedValue>
          <pskc:ValueMAC>bZfd1i7Vv3HgZaFyrqm7v2KVQI2V+0eju+M4QVmXtve1ojliTTXw7Xh2Br8iE3ar7+DM+DUiW4UascHS3u3Q2Q==</pskc:ValueMAC>
        </pskc:Secret>
      </pskc:Data>
    </pskc:Key>
  </pskc:KeyPackage>
  <pskc:KeyPackage>
    <pskc:Key Id="81057fcd-4250-4ea9-9f15-dd73c5bca138" Algorithm="urn:axinom:keyseed">
      <pskc:Data>
        <pskc:Secret>
          <pskc:EncryptedValue>
            <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
            <xenc:CipherData>
              <xenc:CipherValue>mexp2F6oe6ZV0Z+aKC3QxicW4eTCr4eD4NEpKvWdAtI3gnIxxWgT8cRU8sIYAnMu6QSOg7UyYEp4TeCPI7CXr0G8Q5zxSag4uQOoAMNMngBb8EmrMNjwX2DVZQnBrI6nL/l2ndTlP1McmTE0mX9NrK9YC+hx+WuTVSBbAzITcrE3nCTiQiDO3GnweuV1hmo5m6KaIoOZoL/KMieWhHdatNh5tV8UB//xYpdpF2ND358uqlEmtatvN/aQg0gollMkd/4b43Jh1OCHEkcVPGR3qkiChY+iaiWvnk11p6aj/Dj/nwtYKe9LVW00nEFGVAXxTmGQK6UixracpziUv2g4mQ==</xenc:CipherValue>
            </xenc:CipherData>
          </pskc:EncryptedValue>
          <pskc:ValueMAC>ptJ4JtboLP10zu2XQfwTEWa0GuW5tnkDqL44V22IAny3eQzdWbFoKSyOJ+6zeNYxESF9NCoJ7UIXrcaYNUkhXw==</pskc:ValueMAC>
        </pskc:Secret>
      </pskc:Data>
    </pskc:Key>
  </pskc:KeyPackage>
  <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
      <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
      <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha512" />
      <Reference URI="">
        <Transforms>
          <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
        </Transforms>
        <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512" />
        <DigestValue>sk/ZReMDI2UaFCn8VXKDORx8e+dXUaL2kkLDldLaFfJjTTf676csIfGkDkHexQTopl5izEgV139YmVKGDpaqdg==</DigestValue>
      </Reference>
    </SignedInfo>
    <SignatureValue>m46d0rJvj0+o3U0dm256e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QsIxOWVxaU2Wlu32Qkpae+NZFZuVwoDRAyBvav8Hvi7i1RGwJjlhcQ1P9loQta/EiGTbVMhwdI1+t1zSxFwwctAFtmNNdllOIR522hBifk/Tmti6bOo/JqZa157n4/puYTDFb+GEgBa7noJvu3J4GWew01qwxU6T8aBSh6gaBaCwfCz+5t70W87j16erra2VBKJUiPAgMBAAGjUDBOMB0GA1UdDgQWBBQa2PttiSrkLDoWsNgUGZUnEO7jsjAfBgNVHSMEGDAWgBQa2PttiSrkLDoWsNgUGZUnEO7jsjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBraT2yArecfBj37SGH/JohSc7vIMuFTeiMjsLaGy8F1aGP2ChFy51dWs951egwfJJfPhMxct2lsPgLmht2zOf721b4GWis/rjGIIYz3chztrrtGzpHkAeR/ucyIWLkNgv+si9Dm9sGyimT9eOVtRSsUXsB2XBYNysBNcK5+zUJtWpByDHWlCf7NovYUPwSxA1Cyyc8Q2sPBkRpvUjof0ZIUqHMdoz8Gh/zsNxf/JUZdQZ56VEOCx8jGquSihC7ln+pkhJDGy13YokyA+KcqM7Q96zkcN5wRXXytQfHAOy/95n3K7Nw2Kd+s1rsh+QuG2dT0kg6Dy323kvwKTml6YGb</X509Certificate>
      </X509Data>
    </KeyInfo>
  </Signature>
</pskc:KeyContainer>

Response Information

Resource Description

Collection of KeySeed
NameDescriptionTypeAdditional information
Id

The ID of the key seed.

globally unique identifier

Required

Name

The name of the key seed.

string

Max length: 256

Min length: 1

Data

The key seed.

Collection of byte

Max length: 30

Min length: 30

IsSecured

Indicates whether the key seed has been secured and won't be exposed.

boolean

None.

Created

The date when the key seed was created (in the ISO 8601 format).

date

Required

Updated

The date when the key seed was updated last time (in the ISO 8601 format).

date

None.

MadeDefault

The date when the key seed was made as the default one (in the ISO 8601 format). There may be multiple key seeds that were made as the default ones, but only one key seed will be treated as the default one. The default key seed is the last key seed that was made as the default one. If no key seeds were ever made as the default ones, the oldest key seed will be treated as the default one.

date

None.

Status Codes

All HTTP status codes must be expected, but the following status codes are the most probable:

  • OK (200) - Key seeds have been successfully imported.
  • BadRequest (400) - The provided data is invalid.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "cbc6df80-f567-4760-9719-90221fdb786e",
    "Name": "sample string 2",
    "Data": "QEA=",
    "IsSecured": true,
    "Created": "2024-09-24T02:23:49.5846207+00:00",
    "Updated": "2024-09-24T02:23:49.5846207+00:00",
    "MadeDefault": "2024-09-24T02:23:49.5846207+00:00"
  },
  {
    "Id": "cbc6df80-f567-4760-9719-90221fdb786e",
    "Name": "sample string 2",
    "Data": "QEA=",
    "IsSecured": true,
    "Created": "2024-09-24T02:23:49.5846207+00:00",
    "Updated": "2024-09-24T02:23:49.5846207+00:00",
    "MadeDefault": "2024-09-24T02:23:49.5846207+00:00"
  }
]