Package org.opensaml.security.crypto.ec
Class EnhancedECParameterSpec
- java.lang.Object
-
- java.security.spec.ECParameterSpec
-
- org.opensaml.security.crypto.ec.EnhancedECParameterSpec
-
- All Implemented Interfaces:
AlgorithmParameterSpec
public class EnhancedECParameterSpec extends ECParameterSpec
A specialized subclass ofECParameterSpecwhich wraps an existing instance and implementshashCode()andequals(Object)so that it may be used directly in hashtable-based collections, as well as simplifying equality comparisons between 2 instances.
-
-
Field Summary
Fields Modifier and Type Field Description private ECParameterSpecoriginalThe original instance.
-
Constructor Summary
Constructors Constructor Description EnhancedECParameterSpec(ECParameterSpec spec)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ECParameterSpecgetOriginal()Get the original instance passed to the constructor.inthashCode()-
Methods inherited from class java.security.spec.ECParameterSpec
getCofactor, getCurve, getGenerator, getOrder
-
-
-
-
Field Detail
-
original
private final ECParameterSpec original
The original instance.
-
-
Constructor Detail
-
EnhancedECParameterSpec
public EnhancedECParameterSpec(@Nonnull ECParameterSpec spec)Constructor.- Parameters:
spec- the parameter spec instance to wrap
-
-
Method Detail
-
getOriginal
@Nonnull public ECParameterSpec getOriginal()
Get the original instance passed to the constructor.- Returns:
- the original instance
-
-