X509Attestation.createFromRootCertificates Method

定义

重载

createFromRootCertificates(String primary)

Factory with RootCertificates with only primary certificate.

Creates a new instance of the X509Attestation using the provided primary Certificate.

createFromRootCertificates(String primary, String secondary)

Factory with RootCertificates with primary and secondary certificates.

Creates a new instance of the X509Attestation with the primary and secondary certificates.

createFromRootCertificates(String primary)

Factory with RootCertificates with only primary certificate.

Creates a new instance of the X509Attestation using the provided primary Certificate.

public static X509Attestation createFromRootCertificates(String primary)

参数

primary
String

theString 

</code> with the primary certificate. It cannot be<code>null 

</code> or empty. </p>

返回

the new instance of the X509Attestation.

异常

IllegalArgumentException

if the provide certificate is invalid.

createFromRootCertificates(String primary, String secondary)

Factory with RootCertificates with primary and secondary certificates.

Creates a new instance of the X509Attestation with the primary and secondary certificates.

public static X509Attestation createFromRootCertificates(String primary, String secondary)

参数

primary
String

theString 

</code> with the primary certificate. It cannot be<code>null 

</code> or empty. </p>
secondary
String

theString 

</code> with the secondary certificate. It can be<code>null 

</code> or empty (ignored). </p>

返回

the new instance of the X509Attestation.

异常

IllegalArgumentException

if the provide primary certificate is invalid.

适用于