Java 1.4 fixes.
public static ASN1ObjectIdentifier getByName(String sshName)
{
- return oidMap.get(sshName);
+ return (ASN1ObjectIdentifier)oidMap.get(sshName);
}
public static X9ECParameters getParameters(String sshName)
{
- return NISTNamedCurves.getByOID(oidMap.get(Strings.toLowerCase(sshName)));
+ return NISTNamedCurves.getByOID((ASN1ObjectIdentifier)oidMap.get(Strings.toLowerCase(sshName)));
}
public static X9ECParameters getParameters(ASN1ObjectIdentifier oid)
@@ -109,7 +109,7 @@ public static X9ECParameters getParameters(ASN1ObjectIdentifier oid)
public static String getName(ASN1ObjectIdentifier oid)
{
- return oidToName.get(oid);
+ return (String)oidToName.get(oid);
}
public static String getNameForParameters(ECDomainParameters parameters)
@@ -125,6 +125,6 @@ public static String getNameForParameters(ECDomainParameters parameters)
public static String getNameForParameters(ECCurve curve)
{
- return curveNameToSSHName.get(curveMap.get(curve));
+ return (String)curveNameToSSHName.get(curveMap.get(curve));
}
}
