protected Assertion buildCasAssertion(final String principal,
                                          final RegisteredService registeredService,
                                          final Map<String, Object> attributes) {
        val p = new AttributePrincipalImpl(principal, attributes);
        return new AssertionImpl(p, DateTimeUtils.dateOf(ZonedDateTime.now(ZoneOffset.UTC)),
            null, DateTimeUtils.dateOf(ZonedDateTime.now(ZoneOffset.UTC)), attributes);
    }
protected Assertion buildCasAssertion ( final String principal , final RegisteredService registeredService , final Map < String , Object > attributes ) { val p = new AttributePrincipalImpl ( principal , attributes ) ; return new AssertionImpl ( p , DateTimeUtils . dateOf ( ZonedDateTime . now ( ZoneOffset . UTC ) ) , null , DateTimeUtils . dateOf ( ZonedDateTime . now ( ZoneOffset . UTC ) ) , attributes ) ; }
Build cas assertion.

@param principal         the principal
@param registeredService the registered service
@param attributes        the attributes
@return the assertion