keyringtrustpacket.java

来自「面向应用的智能安全代理平台和工具包是一个综合网络应用的安全共性需求而设计和实现的」· Java 代码 · 共 50 行

JAVA
50
字号
package au.net.aba.pgp;

/*
 * $Id: KeyringTrustPacket.java,v 1.2 1998/10/19 06:32:39 leachbj Exp $
 * $Author: leachbj $
 *
 * Copyright (C) 1996-1998 Australian Business Access Pty Ltd.
 * All rights reserved.
 * 
 * Use, modification, copying and distribution of this software is subject the
 * terms and conditions of the ABA Public Licence. See the file
 * "PUBLIC_LICENCE" for additional information.
 *
 * If you have not received a copy of the Public Licence, you must destroy all
 * copies of this file immediately. 
 *
 * $Source: /aba/CVSROOT/jdk1.1/src/au.net.aba/pgp/KeyringTrustPacket.java,v $
 * $Revision: 1.2 $
 * $Date: 1998/10/19 06:32:39 $
 * $State: Exp $
 */

import java.io.*;


//
// Keyring trust packet.
//

class KeyringTrustPacket extends Packet {
	public final static String ident = "$Id: KeyringTrustPacket.java,v 1.2 1998/10/19 06:32:39 leachbj Exp $";

	public byte trust;			// trust data


	//
	// Construct from an input stream.
	// 
	public KeyringTrustPacket (InputStream input)
		throws IOException
	{
		// build packet input stream
		DataInputStream data = buildCipherPacketInputStream (
			input,(byte)0x0c,
			"keyring trust packet expected");

		trust = data.readByte ();
	}
}

⌨️ 快捷键说明

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