Package | Description |
---|---|
com.hcl.domino.admin.idvault | |
com.hcl.domino.data | |
com.hcl.domino.design |
Modifier and Type | Method and Description |
---|---|
UserId |
IdVault.getUserIdFromVault(String userName,
String password,
String serverName)
Will contact the server and locate a vault for
userName .Then downloads the ID file from the vault and store it in memory. |
UserId |
IdVault.getUserIdWithToken(Object token,
String serverName)
Will contact the server and retrieves the
UserId associated with the provided
implementation-specific token. |
Modifier and Type | Method and Description |
---|---|
Optional<UserId> |
IdVaultTokenHandler.getUserId(T token,
String serverName,
IdVault contextIdVault)
Processes the provided token object to look up a
UserId representation. |
Modifier and Type | Method and Description |
---|---|
T |
IdVault.IDAccessCallback.accessId(UserId id)
Implement this method to work with the passed user id.
|
Set<IdVault.IdFlag> |
IdVault.getIDFlags(UserId userId)
Returns flags for the specified ID file
|
String |
IdVault.putUserIdIntoVault(String userName,
String password,
UserId userId,
String serverName)
Will locate a vault server for user
userName and
upload the specified ID contents to the vault, then return with the vault server name. |
Modifier and Type | Method and Description |
---|---|
Document |
Document.copyAndEncrypt(UserId id,
Collection<Document.EncryptionMode> encryptionMode)
This function copies and encrypts (seals) the encryption enabled fields in a document
(including the document's file objects), using a
UserId .It can encrypt a document in several ways -- by using the Domino public key of the caller, by using specified secret encryption keys stored in the caller's ID, or by using the Domino public keys of specified users, if the document does not have any mime parts. The method decides which type of encryption to do based upon the setting of the flag passed to it in its encryptionMode argument.If the Document.EncryptionMode.ENCRYPT_WITH_USER_PUBLIC_KEY flag is set, it uses the
caller's public ID to encrypt the document.In this case, only the user who encodes the document can decrypt it. This feature allows an individual to protect information from anyone else. If, instead, the Document.EncryptionMode.ENCRYPT_WITH_USER_PUBLIC_KEY flag is not set,
then the function expects the document to contain a field named "SecretEncryptionKeys"
a field named "PublicEncryptionKeys", or both.Each field is either a ItemDataType.TYPE_TEXT or ItemDataType.TYPE_TEXT_LIST field."SecretEncryptionKeys" contains the name(s) of the secret encryption keys in the calling user's ID to be used to encrypt the document. This feature is intended to allow a group to encrypt some of the documents in a single database in a way that only they can decrypt them -- they must share the secret encryption keys among themselves first for this to work. "PublicEncryptionKeys" contains the name(s) of users, in canonical format. The document will be encrypted with each user's Domino public key. The user can then decrypt the document with the private key in the user's ID. This feature provides a way to encrypt documents, such as mail documents, for another user. The document must contain at least one encryption enabled item (an item with the Item.ItemFlag.ENCRYPTED flag set)
in order to be encrypted.If the note has mime parts and flag Document.EncryptionMode.ENCRYPT_SMIME_IF_MIME_PRESENT
is set, then it is SMIME encrypted.If the document is to be signed as well as encrypted, you must sign the document before using this method. |
void |
Document.decrypt(UserId id)
Decrypts the contents of the document.
|
void |
Document.sign(UserId id,
boolean signNotesIfMimePresent)
Function to sign all items in the document.
It allows you to pass a flag to determine how MIME parts will be signed. If the note has MIME parts then it will be SMIME signed. |
Modifier and Type | Method and Description |
---|---|
void |
DesignElement.sign(UserId id) |
void |
DbDesign.signAll(Set<DocumentClass> docClass,
UserId id,
DbDesign.SignCallback callback)
Signs all design documents of the specified types
|
Copyright © 2019–2021 HCL. All rights reserved.