Top Description Methods
org.bouncycastle.crypto

public Interface Key

Known Direct Subinterfaces
org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.SymmetricKey

Base interface for keys.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if o is the same or equivalent key, false otherwise.
equals
(Object
object to compare to.
o
)

Return true if o is an equivalent key to this.

public Algorithm

Returns:

the key's algorithm.
getAlgorithm
()

The algorithm the key is for.

public int

Returns:

the key's hashCode.
hashCode
()

Return the hashCode for the key.

Method Detail

equalsback to summary
public boolean equals(Object o)

Return true if o is an equivalent key to this.

Parameters
o:Object

object to compare to.

Returns:boolean

true if o is the same or equivalent key, false otherwise.

getAlgorithmback to summary
public Algorithm getAlgorithm()

The algorithm the key is for.

Returns:Algorithm

the key's algorithm.

hashCodeback to summary
public int hashCode()

Return the hashCode for the key.

Returns:int

the key's hashCode.