Skip to content

GenerateDigestSecretTokenContributor

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

This contributor can generate secret tokens in digest form in a target graph.

This is useful in conjunction with the AuthenticationSecretTokenInterceptor.

  • globalSalt: The global salt to use for the digest algorithm.

Interfaces and Classes

Example Spring Bean

<bean class="xdi2.messaging.target.contributor.impl.digest.GenerateDigestSecretTokenContributor">
	<property name="globalSalt" value="00000000-0000-0000-0000-000000000000" />
</bean>

Example XDI operation

{
  "[=]!:uuid:91f28153-f600-ae24-91f2-8153f600ae24[$msg]!1$do/$do<$digest><$secret><$token>": [
    {
      "[=]!:uuid:91f28153-f600-ae24-91f2-8153f600ae24<$digest><$secret><$token>&/&": "s3cr3t"
    }
  ]
}

Example XDI graph after operation

{
  "[=]!:uuid:91f28153-f600-ae24-91f2-8153f600ae24<$digest><$secret><$token>&/&": "xdi2-digest:3f82590d-db7e-435d-ab34-d80bdff2898f:5ce5283a2d3daa84469e95d74378f6989f46c4f2a1665f067121730a1fbff2b0593356aa802448b8a5229148fee0ebf1ae2783701443ec307abd62ef3d1bd400"
}
Clone this wiki locally