1 7 8 package java.security; 9 10 import java.util.*; 11 12 23 24 public final class KeyPair implements java.io.Serializable { 25 26 private static final long serialVersionUID = -7565189502268009837L; 27 28 private PrivateKey privateKey; 29 private PublicKey publicKey; 30 31 42 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { 43 this.publicKey = publicKey; 44 this.privateKey = privateKey; 45 } 46 47 52 public PublicKey getPublic() { 53 return publicKey; 54 } 55 56 61 public PrivateKey getPrivate() { 62 return privateKey; 63 } 64 } 65 | Popular Tags |