public class X509CAReferences extends Object
this class creates a representation of an X509 CA references. It can receive primary and secondary CA references, but only the primary is mandatory.
Users must provide the CA reference as a String. This class will encapsulate both in a
single X509Attestation.
The following JSON is an example of the result of this class.
{
"primary": "ValidCAReference-1",
"secondary": "validCAReference-2"
}
| Constructor and Description |
|---|
X509CAReferences(X509CAReferences x509CAReferences)
Constructor [COPY]
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPrimary()
Deprecated.
as of provisioning-service-client version 1.3.3, please use
getPrimaryFinal() |
String |
getPrimaryFinal()
Getter for the primary.
|
String |
getSecondary()
Deprecated.
as of provisioning-service-client version 1.3.3, please use
getSecondaryFinal() |
String |
getSecondaryFinal()
Getter for the secondary.
|
public X509CAReferences(X509CAReferences x509CAReferences)
Creates a new instance of the X509CAReferences copping the content of the provided one.
x509CAReferences - the original X509CAReferences to copy.IllegalArgumentException - if the provided X509CAReferences is null or if its primary CA reference is null.@Deprecated public String getPrimary()
getPrimaryFinal()String with the stored primary. It cannot be null.public final String getPrimaryFinal()
String with the stored primary. It cannot be null.@Deprecated public String getSecondary()
getSecondaryFinal()String with the stored secondary. It can be null.public final String getSecondaryFinal()
String with the stored secondary. It can be null.Copyright © 2021. All rights reserved.