org.xwiki.contrib.encryption
Interface EncryptionTool


@ComponentRole
public interface EncryptionTool

Interface (aka Role) of the Component


Method Summary
 String display(String encryptedText, boolean editRight)
          Display an encrypted text if the user can see it.
 String encrypt(String clearText)
          Encrypt a text.
 boolean hasDecryptionRight()
          Check user rights.
 

Method Detail

encrypt

String encrypt(String clearText)
Encrypt a text.

Returns:
an encrypted text

display

String display(String encryptedText,
               boolean editRight)
Display an encrypted text if the user can see it.

Parameters:
encryptedText - Text to be decrypted
editRight - True if the user is allowed to see this
Returns:
Decrypted text if the user is allowed to do it

hasDecryptionRight

boolean hasDecryptionRight()
Check user rights.

Returns:
true if the current user can decrypt a text.


Copyright © 2004-2013 XWiki. All Rights Reserved.