HPDFParsePSD2QcStatement Function

Analiza el DER de un PSD2QcType de ETSI TS 119 495 en un THPDFPSD2QcStatement y rechaza cualquier entrada malformada como un todo

Declaración

function HPDFParsePSD2QcStatement(const StatementInfoDER: TBytes;
  out Statement: THPDFPSD2QcStatement): boolean;

Unidad

HPDFSignVerify

Parámetros

NombrePropósito
StatementInfoDEREl statementInfo del QCStatement 0.4.0.19495.2: exactamente un SEQUENCE { rolesOfPSP, nCAName, nCAId } codificado en DER
StatementRecibe los roles y el nombre y el identificador de la NCA; vacío siempre que la función devuelva false

Valor devuelto

true cuando el búfer contiene un PSD2QcType bien formado; false para un búfer vacío y para cualquiera de las desviaciones siguientes

Entradas rechazadas

Ejemplo

var
  Statement: THPDFPSD2QcStatement;
  I: Integer;
begin
  if HPDFParsePSD2QcStatement(StatementInfoDER, Statement) then
  begin
    for I:= 0 to High(Statement.RolesOfPSP) do
      Writeln(Statement.RolesOfPSP[I].Name, ' (', Statement.RolesOfPSP[I].OID, ')');
    Writeln('NCA: ', Statement.NCAName, ' / ', Statement.NCAId);
  end;
end;

Notas de uso

APIs relacionadas