本文整理了Java中org.bouncycastle.asn1.x500.X500NameStyle.toString()
方法的一些代码示例,展示了X500NameStyle.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X500NameStyle.toString()
方法的具体详情如下:
包路径:org.bouncycastle.asn1.x500.X500NameStyle
类名称:X500NameStyle
方法名:toString
[英]Convert the passed in X500Name to a String.
[中]将传入的X500名称转换为字符串。
代码示例来源:origin: corda/corda-training-solutions
/** Helpers for filtering the network map cache. */
public String toDisplayString(X500Name name){
return BCStyle.INSTANCE.toString(name);
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public String toString()
{
return style.toString(this);
}
代码示例来源:origin: redfish64/TinyTravelTracker
public String toString()
{
return style.toString(this);
}
代码示例来源:origin: org.xipki.tk/security
public static String getRfc4519Name(final X500Name name) {
ParamUtil.requireNonNull("name", name);
return RFC4519Style.INSTANCE.toString(name);
}
代码示例来源:origin: org.xipki/security
public static String getRfc4519Name(X500Name name) {
Args.notNull(name, "name");
return RFC4519Style.INSTANCE.toString(name);
}
代码示例来源:origin: puppetlabs/ssl-utils
/**
* Returns the Subject from an X509Certificate object.
*
* @param certificate The X509Certificate object
* @return String representation of the Subject extracted from the X509Certificate.
*/
public static String getSubjectFromX509Certificate(X509Certificate certificate) {
byte[] encodedName = certificate.getSubjectX500Principal().getEncoded();
X500Name x500Name = X500Name.getInstance(encodedName);
return BCStyle.INSTANCE.toString(x500Name);
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
static void checkCRLsNotEmpty(Set crls, Object cert)
throws AnnotatedException
{
if (crls.isEmpty())
{
if (cert instanceof X509AttributeCertificate)
{
X509AttributeCertificate aCert = (X509AttributeCertificate)cert;
throw new AnnotatedException("No CRLs found for issuer \"" + aCert.getIssuer().getPrincipals()[0] + "\"");
}
else
{
X509Certificate xCert = (X509Certificate)cert;
throw new AnnotatedException("No CRLs found for issuer \"" + RFC4519Style.INSTANCE.toString(PrincipalUtils.getIssuerPrincipal(xCert)) + "\"");
}
}
}
}
代码示例来源:origin: eu.eu-emi.security/canl
static void checkCRLsNotEmpty(Set crls, Object cert)
throws AnnotatedException
{
if (crls.isEmpty())
{
if (cert instanceof X509AttributeCertificate)
{
X509AttributeCertificate aCert = (X509AttributeCertificate)cert;
throw new AnnotatedException("No CRLs found for issuer \"" + aCert.getIssuer().getPrincipals()[0] + "\"");
}
else
{
X509Certificate xCert = (X509Certificate)cert;
throw new AnnotatedException("No CRLs found for issuer \"" + RFC4519Style.INSTANCE.toString(PrincipalUtils.getIssuerPrincipal(xCert)) + "\"");
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!