本文整理汇总了Java中org.bouncycastle.asn1.DERBitString.getPadBits方法的典型用法代码示例。如果您正苦于以下问题:Java DERBitString.getPadBits方法的具体用法?Java DERBitString.getPadBits怎么用?Java DERBitString.getPadBits使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bouncycastle.asn1.DERBitString
的用法示例。
在下文中一共展示了DERBitString.getPadBits方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getIssuerUniqueID
import org.bouncycastle.asn1.DERBitString; //导入方法依赖的package包/类
public boolean[] getIssuerUniqueID()
{
DERBitString id = cert.getAcinfo().getIssuerUniqueID();
if (id != null)
{
byte[] bytes = id.getBytes();
boolean[] boolId = new boolean[bytes.length * 8 - id.getPadBits()];
for (int i = 0; i != boolId.length; i++)
{
boolId[i] = (bytes[i / 8] & (0x80 >>> (i % 8))) != 0;
}
return boolId;
}
return null;
}
示例2: bitStringToBoolean
import org.bouncycastle.asn1.DERBitString; //导入方法依赖的package包/类
static boolean[] bitStringToBoolean(DERBitString bitString)
{
if (bitString != null)
{
byte[] bytes = bitString.getBytes();
boolean[] boolId = new boolean[bytes.length * 8 - bitString.getPadBits()];
for (int i = 0; i != boolId.length; i++)
{
boolId[i] = (bytes[i / 8] & (0x80 >>> (i % 8))) != 0;
}
return boolId;
}
return null;
}
示例3: getIssuerUniqueID
import org.bouncycastle.asn1.DERBitString; //导入方法依赖的package包/类
public boolean[] getIssuerUniqueID()
{
DERBitString id = c.getTBSCertificate().getIssuerUniqueId();
if (id != null)
{
byte[] bytes = id.getBytes();
boolean[] boolId = new boolean[bytes.length * 8 - id.getPadBits()];
for (int i = 0; i != boolId.length; i++)
{
boolId[i] = (bytes[i / 8] & (0x80 >>> (i % 8))) != 0;
}
return boolId;
}
return null;
}
示例4: getSubjectUniqueID
import org.bouncycastle.asn1.DERBitString; //导入方法依赖的package包/类
public boolean[] getSubjectUniqueID()
{
DERBitString id = c.getTBSCertificate().getSubjectUniqueId();
if (id != null)
{
byte[] bytes = id.getBytes();
boolean[] boolId = new boolean[bytes.length * 8 - id.getPadBits()];
for (int i = 0; i != boolId.length; i++)
{
boolId[i] = (bytes[i / 8] & (0x80 >>> (i % 8))) != 0;
}
return boolId;
}
return null;
}
示例5: ReasonFlags
import org.bouncycastle.asn1.DERBitString; //导入方法依赖的package包/类
public ReasonFlags(
DERBitString reasons)
{
super(reasons.getBytes(), reasons.getPadBits());
}
示例6: NetscapeCertType
import org.bouncycastle.asn1.DERBitString; //导入方法依赖的package包/类
public NetscapeCertType(
DERBitString usage)
{
super(usage.getBytes(), usage.getPadBits());
}
示例7: PKIFailureInfo
import org.bouncycastle.asn1.DERBitString; //导入方法依赖的package包/类
public PKIFailureInfo(
DERBitString info)
{
super(info.getBytes(), info.getPadBits());
}