Package org.bouncycastle.crypto
Interface Key
-
- All Known Subinterfaces:
AsymmetricKey
,AsymmetricPrivateKey
,AsymmetricPublicKey
,SymmetricKey
- All Known Implementing Classes:
AsymmetricDHKey
,AsymmetricDHPrivateKey
,AsymmetricDHPublicKey
,AsymmetricDSAKey
,AsymmetricDSAPrivateKey
,AsymmetricDSAPublicKey
,AsymmetricDSTU4145Key
,AsymmetricDSTU4145PrivateKey
,AsymmetricDSTU4145PublicKey
,AsymmetricECGOST3410PrivateKey
,AsymmetricECGOST3410PublicKey
,AsymmetricECKey
,AsymmetricECPrivateKey
,AsymmetricECPublicKey
,AsymmetricEdDSAKey
,AsymmetricEdDSAPrivateKey
,AsymmetricEdDSAPublicKey
,AsymmetricGOST3410Key
,AsymmetricGOST3410PrivateKey
,AsymmetricGOST3410PublicKey
,AsymmetricRSAKey
,AsymmetricRSAPrivateKey
,AsymmetricRSAPublicKey
,AsymmetricXDHKey
,AsymmetricXDHPrivateKey
,AsymmetricXDHPublicKey
,SymmetricSecretKey
public interface Key
Base interface for keys.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Return true if o is an equivalent key to this.Algorithm
getAlgorithm()
The algorithm the key is for.int
hashCode()
Return the hashCode for the key.
-
-
-
Method Detail
-
getAlgorithm
Algorithm getAlgorithm()
The algorithm the key is for.- Returns:
- the key's algorithm.
-
equals
boolean equals(java.lang.Object o)
Return true if o is an equivalent key to this.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- object to compare to.- Returns:
- true if o is the same or equivalent key, false otherwise.
-
hashCode
int hashCode()
Return the hashCode for the key.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the key's hashCode.
-
-