au.net.aba.crypto.provider
Class DHPubKey
java.lang.Object
|
+--au.net.aba.crypto.provider.DHPubKey
- public class DHPubKey
- extends java.lang.Object
- implements DHPublicKey
a class representing a Diffie-Hellman public key. Note: incomplete.
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
ident
|
| Fields inherited from interface javax.crypto.interfaces.DHKey |
ident |
| Fields inherited from interface java.security.PublicKey |
serialVersionUID |
| Fields inherited from interface java.security.Key |
serialVersionUID |
|
Constructor Summary |
protected |
DHPubKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger g)
|
protected |
DHPubKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger g,
int l)
|
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAlgorithm()
return the algorithm for this key. |
byte[] |
getEncoded()
return an encoded representation for this key. |
java.lang.String |
getFormat()
return the format this key is in. |
DHParameterSpec |
getParams()
Returns the key parameters. |
java.math.BigInteger |
getY()
Returns the public value, y. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ident
public static final java.lang.String ident
DHPubKey
protected DHPubKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger g)
DHPubKey
protected DHPubKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger g,
int l)
getY
public java.math.BigInteger getY()
- Returns the public value, y.
- Specified by:
- getY in interface DHPublicKey
- Returns:
- the public value, y.
getParams
public DHParameterSpec getParams()
- Returns the key parameters.
- Returns:
- the key parameters.
getAlgorithm
public java.lang.String getAlgorithm()
- return the algorithm for this key.
getFormat
public java.lang.String getFormat()
- return the format this key is in.
equals
public boolean equals(java.lang.Object o)
- Overrides:
- equals in class java.lang.Object
getEncoded
public byte[] getEncoded()
- return an encoded representation for this key.