JML

java.security
Class KeyPair

java.lang.Object
  extended byjava.security.KeyPair
All Implemented Interfaces:
Serializable

public final class KeyPair
extends Object
implements Serializable

JML's specification of KeyPair.

Author:
Poonam Agarwal, Yoonsik Cheon

Class Specifications

Specifications inherited from class Object
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this);

Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
[spec_public] private  PrivateKey privateKey
           
[spec_public] private  PublicKey publicKey
           
 
Constructor Summary
KeyPair(PublicKey publicKey, PrivateKey privateKey)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Method Summary
 PrivateKey getPrivate()
           
 PublicKey getPublic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

privateKey

private PrivateKey privateKey
Specifications: spec_public

publicKey

private PublicKey publicKey
Specifications: spec_public
Constructor Detail

KeyPair

public KeyPair(PublicKey publicKey,
               PrivateKey privateKey)
Specifications:
public normal_behavior
assignable this.publicKey, this.privateKey;
ensures this.publicKey == publicKey&&this.privateKey == privateKey;
Method Detail

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

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.