⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 session.java

📁 进行与数字证书相关开发必须的java源码
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Session.java

package jit.jcrypto;


// Referenced classes of package jit.jcrypto:
//            Mechanism, JKey

public abstract class Session
{

    protected int deviceID;
    protected int slotID;
    protected long session;

    public Session(int _dID, int _sID)
    {
        deviceID = _dID;
        slotID = _sID;
    }

    public int getDeviceID()
    {
        return deviceID;
    }

    public int getSlotID()
    {
        return slotID;
    }

    public long getSession()
    {
        return session;
    }

    public abstract boolean login(byte abyte0[]);

    public abstract boolean logout();

    public abstract boolean setPIN(byte abyte0[], byte abyte1[]);

    public abstract byte[] digest(Mechanism mechanism, byte abyte0[])
        throws Exception;

    public abstract byte[] generateMac(Mechanism mechanism, JKey jkey, byte abyte0[])
        throws Exception;

    public abstract boolean verifyMac(Mechanism mechanism, JKey jkey, byte abyte0[], byte abyte1[]);

    public abstract byte[] sign(Mechanism mechanism, JKey jkey, byte abyte0[])
        throws Exception;

    public abstract byte[] sign_ex(Mechanism mechanism, JKey jkey, byte abyte0[])
        throws Exception;

    public abstract boolean verifySign(Mechanism mechanism, JKey jkey, byte abyte0[], byte abyte1[]);

    public abstract boolean verifySign_ex(Mechanism mechanism, JKey jkey, byte abyte0[], byte abyte1[]);

    public abstract byte[] encrypt(Mechanism mechanism, JKey jkey, byte abyte0[])
        throws Exception;

    public abstract byte[] decrypt(Mechanism mechanism, JKey jkey, byte abyte0[])
        throws Exception;

    public abstract JKey generateKey(Mechanism mechanism, int i)
        throws Exception;

    public abstract JKey generatePBEKey(Mechanism mechanism, byte abyte0[])
        throws Exception;

    public abstract JKey[] generateKeyPair(Mechanism mechanism)
        throws Exception;

    public abstract byte[] generateRandom(Mechanism mechanism, int i)
        throws Exception;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -