}
assertNotNull("SAMLV1.1 assertion is missing the authentication statement", authStatement);
// validate the assertion subject.
assertNotNull("Unexpected null subject", authStatement.getSubject());
SAML11SubjectType subject = authStatement.getSubject();
SAML11NameIdentifierType nameID = subject.getChoice().getNameID();
assertEquals("Unexpected NameIdentifier format", SAML11Constants.FORMAT_UNSPECIFIED, nameID.getFormat().toString());
assertEquals("Unexpected NameIdentifier value", principal, nameID.getValue());
SAML11SubjectConfirmationType subjType = subject.getSubjectConfirmation();
assertEquals("Unexpected confirmation method", confirmationMethod, subjType.getConfirmationMethod().get(0).toString());
// validate the assertion conditions.
assertNotNull("Unexpected null conditions", assertion.getConditions());
assertEquals(lifetime.getCreated(), assertion.getConditions().getNotBefore());