home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / security / KeyPair.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  561 b   |  23 lines

  1. package java.security;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public final class KeyPair implements Serializable {
  6.    private static final long serialVersionUID = -7565189502268009837L;
  7.    private PrivateKey privateKey;
  8.    private PublicKey publicKey;
  9.  
  10.    public KeyPair(PublicKey var1, PrivateKey var2) {
  11.       this.publicKey = var1;
  12.       this.privateKey = var2;
  13.    }
  14.  
  15.    public PublicKey getPublic() {
  16.       return this.publicKey;
  17.    }
  18.  
  19.    public PrivateKey getPrivate() {
  20.       return this.privateKey;
  21.    }
  22. }
  23.