Home Manual Reference Source
public class | source

Session

Member Summary

Public Members
public

The user's unencrypted private key. This key is decrypted from Session.privateKeyPEM$ after login, using the user's password.

public

The user's encrypted private key. This key is encrypted with the user's password during registration.

public

The user's public key. Locally, this key is used when generating an envelope for comments & files.

public

The server's public key. This key is always appended to any envelope generated on the client-side so it can be later re-keyed server-side when other user's are added to the proof.

public

This key is used to sign all authorized requests to the server.

public

The session token.

public

The authenticated user's User object.

This object is provided to make it possible to display the user details without having to make a separate call to the server to obtain them.

public

The user's unique identifier.

Public Members

public privateKeyPEM: string source

The user's unencrypted private key. This key is decrypted from Session.privateKeyPEM$ after login, using the user's password.

See:

public privateKeyPEM$: string source

The user's encrypted private key. This key is encrypted with the user's password during registration.

See:

public publicKeyPEM: string source

The user's public key. Locally, this key is used when generating an envelope for comments & files.

public serverPublicKeyPEM: string source

The server's public key. This key is always appended to any envelope generated on the client-side so it can be later re-keyed server-side when other user's are added to the proof.

public sharedKey: string source

This key is used to sign all authorized requests to the server. It changes, much like the token, ever time a new session is created. It is used to salt the HMAC.

public token: string source

The session token. This unique ID represents the session. It is also used to sign all authorized requests to the server. Along with Session.sharedKey.

See:

public user: User source

The authenticated user's User object.

This object is provided to make it possible to display the user details without having to make a separate call to the server to obtain them.

public userId: string source

The user's unique identifier.