FileDocCategorySizeDatePackage
XYZKeyFactory.javaAPI DocExample5603Sun Oct 25 18:13:36 GMT 1998None

XYZPublicKeyEncodedSpec

public class XYZPublicKeyEncodedSpec extends EncodedKeySpec

Fields Summary
byte[]
encoding
Constructors Summary
XYZPublicKeyEncodedSpec(byte[] b)

		// In 1.2 beta 4, this constructor is required since the base class
		// has a constructor only with this signature
		super(b);
		encoding = new byte[b.length];
		System.arraycopy(b, 0, encoding, 0, b.length);
	
Methods Summary
public byte[]getEncoded()

		return encoding;
	
public java.lang.StringgetFormat()

		return "XYZ Special Format";
	
XYZPublicKeygetKeyFromSpec()

		return (XYZPublicKey) new XYZKey(encoding);
	
public java.lang.StringtoString()

		if (encoding == null)
			return "Public Spec no encoding";
		return "Public spec " + encoding[3] + encoding[2] + encoding[1] + encoding[0];