001/*              
002 * ===========================================================================================
003 * = COPYRIGHT                    
004 *          PAX Computer Technology(Shenzhen) CO., LTD PROPRIETARY INFORMATION          
005 *   This software is supplied under the terms of a license agreement or nondisclosure  
006 *   agreement with PAX Computer Technology(Shenzhen) CO., LTD and may not be copied or 
007 *   disclosed except in accordance with the terms in that agreement.                   
008 *     Copyright (C) 2017-? PAX Computer Technology(Shenzhen) CO., LTD All rights reserved.
009 * Description: // Detail description about the function of this module,                
010 *             // interfaces with the other modules, and dependencies.          
011 * Revision History:            
012 * Date                  Author                 Action
013 * 2017-09-05            uni.w                                  Create
014 * ===========================================================================================
015 */
016 
017package com.pax.dal.pedkeyisolation;
018
019import java.util.List;
020
021import com.pax.dal.IPed;
022import com.pax.dal.entity.AllocatedKeyInfo;
023import com.pax.dal.entity.EPedKeySort;
024import com.pax.dal.exceptions.PedDevException;
025
026/**
027 * @deprecated This class is deprecated. It is recommended to use {@link com.pax.dal.IPedKeyIsolationManager} instead.
028 */
029@Deprecated
030public interface IPedKeyIsolation extends IPed {
031    /**
032     * <div class="zh"> 获取已分配密钥的信息 </div> <div class="en"> get allocated key information </div>
033     * 
034     * @param keySort
035     *            {@link EPedKeySort}
036     * @return
037     */
038    public List<AllocatedKeyInfo> getAllocatedKeys(EPedKeySort keySort);
039    
040    /**
041     * <div class="zh">更改RSA密钥的所有者。</div> <div class="en">Change the RSA key owner.</div>
042     * 
043     * @param keyIndex <div class="zh">密钥索引。</div> <div class="en">The key indexes.</div>
044     * 
045     * @param packageName <div class="zh">应用包名。</div> <div class="en">The package name.</div>
046     * 
047     * @throws PedDevException
048     * @since V3.10.00
049     */
050    void changeRSAKeyOwner(int keyIndex, String packageName) throws PedDevException;
051    
052    /**
053     * <div class="zh">更改TDK密钥的所有者。</div> <div class="en">Change the TDK key owner.</div>
054     * 
055     * @param keyIndex <div class="zh">密钥索引。</div> <div class="en">The key indexes.</div>
056     * 
057     * @param packageName <div class="zh">应用包名。</div> <div class="en">The package name.</div>
058     * 
059     * @throws PedDevException
060     * @since V3.10.00
061     */
062    void changeTDKOwner(int keyIndex, String packageName) throws PedDevException;
063}