Java 类org.bouncycastle.asn1.DERTags 实例源码

项目:SNMP-IB    文件:Counter64.java   
public static Counter64 fromApplicationSpecific(DERApplicationSpecific app) throws IOException
{
    DERInteger i = (DERInteger) app.getObject(DERTags.INTEGER);
    return new Counter64(i.getValue());
}
项目:SNMP-IB    文件:IPAddress.java   
public static IPAddress fromApplicationSpecific(DERApplicationSpecific app) throws IOException
{
    DEROctetString addr = (DEROctetString) app.getObject(DERTags.OCTET_STRING);
    return new IPAddress(InetAddress.getByAddress(addr.getOctets()));
}
项目:SNMP-IB    文件:Counter32.java   
public static Counter32 fromApplicationSpecific(DERApplicationSpecific app) throws IOException
{
    DERInteger i = (DERInteger) app.getObject(DERTags.INTEGER);
    return new Counter32(i.getValue().longValue());
}
项目:SNMP-IB    文件:TimeTicks.java   
public static TimeTicks fromApplicationSpecific(DERApplicationSpecific app) throws IOException
{
    DERInteger i = (DERInteger) app.getObject(DERTags.INTEGER);
    return new TimeTicks(i.getPositiveValue().longValue());
}
项目:SNMP-IB    文件:Gauge32.java   
public static Gauge32 fromApplicationSpecific(DERApplicationSpecific app) throws IOException
{
    DERInteger i = (DERInteger) app.getObject(DERTags.INTEGER);
    return new Gauge32(i.getValue().longValue());
}