public static Counter64 fromApplicationSpecific(DERApplicationSpecific app) throws IOException { DERInteger i = (DERInteger) app.getObject(DERTags.INTEGER); return new Counter64(i.getValue()); }
public static IPAddress fromApplicationSpecific(DERApplicationSpecific app) throws IOException { DEROctetString addr = (DEROctetString) app.getObject(DERTags.OCTET_STRING); return new IPAddress(InetAddress.getByAddress(addr.getOctets())); }
public static Counter32 fromApplicationSpecific(DERApplicationSpecific app) throws IOException { DERInteger i = (DERInteger) app.getObject(DERTags.INTEGER); return new Counter32(i.getValue().longValue()); }
public static TimeTicks fromApplicationSpecific(DERApplicationSpecific app) throws IOException { DERInteger i = (DERInteger) app.getObject(DERTags.INTEGER); return new TimeTicks(i.getPositiveValue().longValue()); }
public static Gauge32 fromApplicationSpecific(DERApplicationSpecific app) throws IOException { DERInteger i = (DERInteger) app.getObject(DERTags.INTEGER); return new Gauge32(i.getValue().longValue()); }