1 17 18 package org.apache.geronimo.util.crypto.params; 19 20 import java.math.BigInteger ; 21 22 public class DHPrivateKeyParameters 23 extends DHKeyParameters 24 { 25 private BigInteger x; 26 27 public DHPrivateKeyParameters( 28 BigInteger x, 29 DHParameters params) 30 { 31 super(true, params); 32 33 this.x = x; 34 } 35 36 public BigInteger getX() 37 { 38 return x; 39 } 40 41 public boolean equals( 42 Object obj) 43 { 44 if (!(obj instanceof DHPrivateKeyParameters)) 45 { 46 return false; 47 } 48 49 DHPrivateKeyParameters pKey = (DHPrivateKeyParameters)obj; 50 51 if (!pKey.getX().equals(x)) 52 { 53 return false; 54 } 55 56 return super.equals(obj); 57 } 58 } 59 | Popular Tags |