Categories:
Audio (13)
Biotech (29)
Bytecode (22)
Database (79)
Framework (7)
Game (7)
General (497)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (70)
JavaBeans (16)
JDBC (86)
JDK (338)
JSP (20)
Logging (90)
Mail (54)
Messaging (8)
Network (106)
PDF (82)
Report (7)
Scripting (75)
Security (67)
Server (112)
Servlet (17)
SOAP (24)
Testing (55)
Web (24)
XML (287)
Other Resources:
JDK 1.1 Source Code Directory
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes:
"C:\fyicenter\jdk-1.1.8\src".
Here is the list of Java classes of the JDK 1.1 source code:
✍: FYIcenter
⏎ java/security/Signer.java
/* * @(#)Signer.java 1.25 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.security; import java.io.*; /** * This class is used to represent an Identity that can also digitally * sign data. * * <p>The management of a signer's private keys is an important and * sensitive issue that should be handled by subclasses as appropriate * to their intended use. * * @see Identity * * @version 1.22, 01/31/97 * @author Benjamin Renaud */ public abstract class Signer extends Identity { private PrivateKey privateKey; /** * Creates a signer. This constructor should only be used for * serialization. */ protected Signer() { super(); } /** * Creates a signer with the specified identity name. * * @param name the identity name. */ public Signer(String name) { super(name); } /** * Creates a signer with the specified identity name and scope. * * @param name the identity name. * * @param scope the scope of the identity. * * @exception KeyManagementException if there is already an identity * with the same name in the scope. */ public Signer(String name, IdentityScope scope) throws KeyManagementException { super(name, scope); } /** * Returns this signer's private key. * * @return this signer's private key, or null if the private key has * not yet been set. */ public PrivateKey getPrivateKey() { check("get.private.key"); return privateKey; } /** * Sets the key pair (public key and private key) for this signer. * * @param pair an initialized key pair. * * @exception InvalidParameterException if the key pair is not * properly initialized. * @exception KeyException if the key pair cannot be set for any * other reason. */ public final void setKeyPair(KeyPair pair) throws InvalidParameterException, KeyException { check("set.private.keypair"); PublicKey pub = pair.getPublic(); PrivateKey priv = pair.getPrivate(); if (pub == null || priv == null) { throw new InvalidParameterException(); } setPublicKey(pub); privateKey = priv; } String printKeys() { String keys = ""; PublicKey publicKey = getPublicKey(); if (publicKey != null && privateKey != null) { keys = "\tpublic and private keys initialized"; } else { keys = "\tno keys"; } return keys; } /** * Returns a string of information about the signer. * * @return a string of information about the signer. */ public String toString() { return "[Signer]" + super.toString(); } }
⏎ java/security/Signer.java
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, 37385👍, 0💬
Popular Posts:
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
What Is commons-fileupload-1.3.3 .jar?commons-fileupload-1.3.3 .jaris the JAR file for Apache Common...
Crimson is a Java XML parser which supports XML 1.0 via the following APIs: JAXP 1.1, SAX 2.0, DOM L...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
A stream buffer is a stream-based representation of an XML infoset in Java. Stream buffers are desig...