read: (
xml: any,
) =>
| {
attributes: {};
audiences: any[];
authnStatements: number;
confirmations: any[];
hasConditions: boolean;
hasSubject: boolean;
id: string;
issueInstant: string;
issuer: string;
keyInfoCertificate: string;
nameIdFormat: string;
notBefore: string;
notOnOrAfter: string;
ok: boolean;
signed: boolean;
subject: string;
subjectWasEncrypted: boolean;
unknownConditions: any[];
version: string;
}
| { ok: boolean; why: string } = read
Type Declaration
-
- (
xml: any,
):
| {
attributes: {};
audiences: any[];
authnStatements: number;
confirmations: any[];
hasConditions: boolean;
hasSubject: boolean;
id: string;
issueInstant: string;
issuer: string;
keyInfoCertificate: string;
nameIdFormat: string;
notBefore: string;
notOnOrAfter: string;
ok: boolean;
signed: boolean;
subject: string;
subjectWasEncrypted: boolean;
unknownConditions: any[];
version: string;
}
| { ok: boolean; why: string }
-
Returns
| {
attributes: {};
audiences: any[];
authnStatements: number;
confirmations: any[];
hasConditions: boolean;
hasSubject: boolean;
id: string;
issueInstant: string;
issuer: string;
keyInfoCertificate: string;
nameIdFormat: string;
notBefore: string;
notOnOrAfter: string;
ok: boolean;
signed: boolean;
subject: string;
subjectWasEncrypted: boolean;
unknownConditions: any[];
version: string;
}
| { ok: boolean; why: string }
the parts (id, issuer, subject, confirmations, audiences,
attributes, signed and the rest), or { ok: false, why }
Reads a SAML 2.0
<Assertion>into its parts without deciding anything; nothing read is believed until the signature has verified.