Skip to content

SharkPKI Integration

Thomas Schwotzer edited this page Jan 11, 2022 · 11 revisions

[Working on it. Just a sketch, a collection of links and class names. We bring order in this mess asap.]

SharkPKI is a component. It is used as contact management in SN2 - implies: We have got a public key for any contact. We know people only when we met them in person or received a certificate. Welcome to our small world.

package net.sharksytem.pki.android

Persons management

Contacts

  • PersonEditActivity - view and allows setting signing failure estimation

Owner / User

  • OwnerActivity - shows user information. Allows creating new certificates. Send credentials..
  • OwnerCredentialSendActivity - dialog that allows users to send - leads to sendOnlineCredentialMessage().

Certificates

Credential exchange

A certificate is created once a peer receives a public key and a user (a human being) certifies its (if it is a machine) or her/his identity.

  • CredentialExchangeActivity presents a description and give choice to receive or send credentials

send credential

  • CredentialSendActivity - is created as a result of user interaction by OwnerActivity. Provides dialog that finally leads to a call to sendOnlineCredentialMessage() - start
  • CredentialViewActivity - presents received credential and asks for patience

receive credential

  • CredentialWaitToReceiveActivity simply asks user to wait - once received.
  • CredentialViewActivity - presents received credential and asks for confirmation (or not) creates a certificate that is automatically sent and herewith stored with peer's ASAPStorage.

Exchange