import org.xbill.DNS.Name;
-import com.versign.tat.dnssec.SRRset;
-import com.versign.tat.dnssec.SecurityStatus;
-
-
/**
*
*/
public class TrustAnchorStore
{
- private Map mMap;
+ private Map<String, SRRset> mMap;
public TrustAnchorStore()
{
{
if (mMap == null)
{
- mMap = new HashMap();
+ mMap = new HashMap<String, SRRset>();
}
String k = key(rrset.getName(), rrset.getDClass());
rrset.setSecurityStatus(SecurityStatus.SECURE);
private SRRset lookup(String key)
{
if (mMap == null) return null;
- return (SRRset) mMap.get(key);
+ return mMap.get(key);
}
public SRRset find(Name n, int dclass)