GenerateKeyContributor

Markus Sabadello edited this page Aug 30, 2014 · 5 revisions

This contributor can generate key pairs and symmetric keys in a target graph.

This is useful in conjunction with the AuthenticationSignatureInterceptor.

Interfaces and Classes

Example Spring Bean

<bean class="xdi2.messaging.target.contributor.impl.keygen.GenerateKeyContributor" />

Example XDI operation

{
  "[=]!:uuid:91f28153-f600-ae24-91f2-8153f600ae24[$msg]!1$do/$do$keypair": [
    {
      "$msg$sig$keypair/$is#": [ "$rsa$1024" ]
    }
  ]
}

Example XDI graph after operation

{
  "$msg$sig$keypair/$is#": [
    "$rsa$1024"
  ],
  "$msg$sig$keypair<$private>&/&": "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJ2p2wrDSrC3m8XmJE0STkTACF5caKIKdxuZXnfXAWhYyiv+StPJv+K5q1Ht0XO8ndo6bSzUDDdF4G8rQuHMV9pwp9UGgWs4AlGAyisLKPUfoUvyd45zQYqcaSxtgpLlIVx/kqV1n7A4ds/rAiXqHk4wq8/5wQDq/SM3Ye6JiSdxAgMBAAECgYA0iJ1I18uyWGuaJFYiLCBSPh5LusTOgWgwlQjqK4T3jOZIhGHQcd/zHuSb1v88bjO2vFMWZc1wOWNQB30wmZMH14/U/q8ZtDInzzczOS8xJOi99xGOpldHHRaVhw286P3Pia36W4DclKq8/vlWF6a8/GVu1FVXkTc7+Mw3y7w5VQJBAP11zpGE1aBSclWt18y5v3tTyNMGupGezRJ/HQHJ6vx/LAnzCrsHmT7ESioNYWgLuoyUaFf0TrXyvxF+5TniOicCQQCfPk38bIZcT369lJmsKK3EuwUxtgt8XxGRBalE1Q/KlxfJvkWc1obSCLEuD2zpjjDNCSWQDHK7KxXHIzbMPAinAkEA0lCn6M4NqavgHcJT+BgFkKNUV+8UbvMTfY6mli5jY8Nu2o6mz80dVxzv4Xca5Ygd8rrO3nTlv0q/Sxg9w0s6LwJAOACpXISuG/i5EeMYyDrmIbHD+d+T2oF0pBPhm5tymkTY0NJhmO65K1RzO0ehfeHLt8/nreky0DAu0IHJ27mhMQJBAKzsvdsCqEmhzZOjDzUzKeEPPudUlzLXb0Z0gx60QkQg/LUkzD5eyRPSIpWmnma+CcUiXzA15nOz9N8Og9WsFm8=",
  "$msg$sig$keypair<$public>&/&": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdqdsKw0qwt5vF5iRNEk5EwAheXGiiCncbmV531wFoWMor/krTyb/iuatR7dFzvJ3aOm0s1Aw3ReBvK0LhzFfacKfVBoFrOAJRgMorCyj1H6FL8neOc0GKnGksbYKS5SFcf5KldZ+wOHbP6wIl6h5OMKvP+cEA6v0jN2HuiYkncQIDAQAB"
}

Supported Key Algorithms

  • RSA
  • DSA
  • AES

XDI2

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.