java.security
Class KeyPair
java.lang.Object
java.security.KeyPair
- All Implemented Interfaces:
- Serializable
- public final class KeyPair
- extends Object
- implements Serializable
JML's specification of KeyPair
.
- Author:
- Poonam Agarwal, Yoonsik Cheon
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this); |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
privateKey
private PrivateKey privateKey
- Specifications: spec_public
publicKey
private PublicKey publicKey
- Specifications: spec_public
KeyPair
public KeyPair(PublicKey publicKey,
PrivateKey privateKey)
- Specifications:
-
public normal_behavior
assignable this.publicKey, this.privateKey;
ensures this.publicKey == publicKey&&this.privateKey == privateKey;
getPublic
public PublicKey getPublic()
- Specifications: pure
-
public normal_behavior
assignable \nothing;
ensures \result == this.publicKey;
getPrivate
public PrivateKey getPrivate()
- Specifications: pure
-
public normal_behavior
assignable \nothing;
ensures \result == this.privateKey;
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.