All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmind.core.IEncryptionData Maven / Gradle / Ivy

Go to download

Plugin that manages JBehave stories storage in XMind mindmap file, which allows design jBehave tests right after the brainstorm

The newest version!
/* ******************************************************************************
 * Copyright (c) 2006-2012 XMind Ltd. and others.
 * 
 * This file is a part of XMind 3. XMind releases 3 and
 * above are dual-licensed under the Eclipse Public License (EPL),
 * which is available at http://www.eclipse.org/legal/epl-v10.html
 * and the GNU Lesser General Public License (LGPL), 
 * which is available at http://www.gnu.org/licenses/lgpl.html
 * See http://www.xmind.net/license.html for details.
 * 
 * Contributors:
 *     XMind Ltd. - initial API and implementation
 *******************************************************************************/
package org.xmind.core;

/**
 * @author frankshaka
 * 
 */
public interface IEncryptionData extends IAdaptable {

    /**
     * Use SEP to separate multiple keys.
     * 

* Example: * *

     * encryption data: checksum="acbdefghij==" checksum-type="MD5"
     *     +-- algorithm: algorithm-name="PBEWithMD5AndDES/CBC/Padded"  
     *     +-- key-derivation: key-derivation-name="PKCS12" salt="12345678==" iteration-count="1024"
     * 
* * encryptionData.getAttribute("checksum") = "acbdefghij=="
* encryptionData.getAttribute("checksum-type") = "MD5"
* encryptionData.getAttribute("algorithm", "algorithm-name") = * "PBEWithMD5AndDES/CBC/Padded"
* encryptionData.getAttribute("key-derivation", "key-derivation-name") = * "PKCS12"
* encryptionData.getAttribute("key-derivation", "salt") = "12345678=="
* encryptionData.getAttribute("key-derivation", "iteration-count") = "1024" *

* * @param keyPath * @return */ String getAttribute(String... keyPath); /** * * @param defaultValue * @param keyPath * @return */ int getIntAttribute(int defaultValue, String... keyPath); /** * * @param value * @param keyPath */ void setAttribute(String value, String... keyPath); /** * * @return */ String getChecksum(); /** * * @param checksum */ void setChecksum(String checksum); /** * * @return */ String getChecksumType(); /** * * @param checksumType */ void setChecksumType(String checksumType); /** * * @return */ IFileEntry getFileEntry(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy