public boolean equals (Object obj)

Overriding: java.lang.Object

Tests for equality between the specified object and this object. Two SecretKeySpec objects are considered equal if they are both SecretKey instances which have the same case-insensitive algorithm name and key encoding.

Parameters:
obj    the object to test for equality with this object.

Returns:  true if the objects are considered equal, false if obj is null or otherwise.