// Check if the input was a CVCA certificate, which is the same CVCA as this. If all is true we should create a CVCA link certificate
// instead of an authenticated request
CardVerifiableCertificate cvccert = new CardVerifiableCertificate(cvcert);
HolderReferenceField cvccertholder = cvccert.getCVCertificate().getCertificateBody().getHolderReference();
AuthorizationRoleEnum authRole = null;
AccessRightEnum rights = null;
try {
authRole = cvccert.getCVCertificate().getCertificateBody().getAuthorizationTemplate().getAuthorizationField().getRole();
rights = cvccert.getCVCertificate().getCertificateBody().getAuthorizationTemplate().getAuthorizationField().getAccessRight();
} catch (NoSuchFieldException e) {
log.debug("No AuthorizationRoleEnum or AccessRightEnum, this is not a CV certificate so we can't make a link certificate: "+e.getMessage());